Jump to content

Recommended Posts

Posted

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:

Guest PlayON
Posted

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! :)

Posted

[glow=red,2,300]Amaru frumos 5/5 , si ai avut dreptate , a lu ZH3R0 este mai avansat si mai frumos  :laugh:[/glow]

cheetahwheelhz2.gif

Ai curaj sa il intreci?

Posted

[glow=red,2,300]Amaru frumos 5/5 , si ai avut dreptate , a lu ZH3R0 este mai avansat si mai frumos  :laugh:[/glow]

Multumesc. Tu normal stii sa scrii?

Posted

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...

Posted

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

Posted

STAI ASA sa-l caut ca numai stiu la auzi amaru ca sa fiu eu sigur tu esti panteli ala?

Edit:scz era postat de el bv si imi cer scuze

5/5 ;)

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

  • 1 month later...
Posted

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.

Posted

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...

Posted

am pus Pawno 0.3c dar acuma am eroarea asta numa

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

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

de ce ?

  • 1 month later...
Posted

-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"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.