Jump to content

Register/login system (Dini, dialogs)


amaru

Recommended Posts

Am facut sistemul asta de inregistrare/logare pentru a mai invata ceva dini. E foarte simplu de folosit/instalat/copiat/furat/schimbat credite

Totul se face in dialoguri si se salveaza in scriptfiles. Momentan are OnGameModeInit pentru ca l-am testat ca gamemod, dar daca vreti puteti schimba voi.

Poze:

-nu cred ca are rost sa pun. Cred ca v-ati prins despre ce e vorba.

Download: http://pastebin.com/FhwbxT5p

Multumesc Zh3r0 pentru ajutor.

Si da, mi-a venit ideea cand l-am vazut pe al lui Zh3r0. Oricum al lui e mai avansat  :tongue:

Link to comment
Share on other sites

Guest PlayON

Vad ca ai facut o variabila sa verifici daca are cont creat sau nu, ei bine este gresit deoarece functia dini_Exists face deja totul...


if(dini_Exists(string))

{

    gPlayerAccount[playerid] = 1;

}

else

{

    gPlayerAccount[playerid] = 0;

}


Inloc sa faci:


if ( gPlayerAccount[ playerid ] == 1 )


Mai eficient este:


stock ReturnPlayerFile( playerid)

{

    new Str[ 6 + 30],

        iName[ 30 ];

    GetPlayerName( playerid, iName, 30 );

    format( Str, 100, "%s.ini", iName );

    return Str;

}

if ( fexist( ReturnPlayerFile( playerid ) ) )

{

    //code code code

}


Innnfffiiinee! :)

Link to comment
Share on other sites

ba mi se pare ca e furat....

am tras asa o privire pe sa-mp.com ca cautam un fs pentru sv meu..si cand deodata un topic exact cu acelasi nume ca la al tau si  leam comparat pe amandoua si cred ca e furat:|ai mai modifikat tu niste kiesti pe acolo parca...

1/5 fail:|

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

TheBoss" post="60562" timestamp="1300022031"]

ba mi se pare ca e furat....

am tras asa o privire pe sa-mp.com ca cautam un fs pentru sv meu..si cand deodata un topic exact cu acelasi nume ca la al tau si  leam comparat pe amandoua si cred ca e furat:|ai mai modifikat tu niste kiesti pe acolo parca...

1/5 fail:|

arata link-ul...sa ne dam si noi cu parerea

Link to comment
Share on other sites

  • 1 month later...

salut am si eu o problema cund dau sal fac prin Pawon am o eroare

D:\new\new SMAP mode\Register.pwn(86) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(113) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(157) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(167) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")

D:\new\new SMAP mode\Register.pwn(179) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(183) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(199) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(219) : error 017: undefined symbol "ShowPlayerDialog"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.

Link to comment
Share on other sites

salut am si eu o problema cund dau sal fac prin Pawon am o eroare

D:\new\new SMAP mode\Register.pwn(86) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(113) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(157) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(167) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")

D:\new\new SMAP mode\Register.pwn(179) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(183) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(199) : error 017: undefined symbol "ShowPlayerDialog"

D:\new\new SMAP mode\Register.pwn(219) : error 017: undefined symbol "ShowPlayerDialog"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.

\

Bagati pawno de 0.3c nu de 0.2x...

Link to comment
Share on other sites

  • 1 month later...

-MoArTeA-" post="60562" timestamp="1300022031"]

ba mi se pare ca e furat....

am tras asa o privire pe sa-mp.com ca cautam un fs pentru sv meu..si cand deodata un topic exact cu acelasi nume ca la al tau si  leam comparat pe amandoua si cred ca e furat:|ai mai modifikat tu niste kiesti pe acolo parca...

1/5 fail:|

ti se pare......mai vino si tu cu argumente mai puternice cum ar fi un link cu site-ul de unde e "furat"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.