[HELP]Y_ini register system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Y_ini register system (
/showthread.php?tid=235479)
[HELP]Y_ini register system -
tuuker - 05.03.2011
I am not sure if this is right topic for this post but im asking anyway.
Can someone show me hes Y_ini register system code for example? I wanna understand and see how does it work. Rightnow im using for my script dini, its simple but its slow.
Re: [HELP]Y_ini register system -
Mean - 05.03.2011
No problem:
pawn Код:
CMD:register( playerid, params[ ] )
{
new file[ 256 ];
new name[ 24 ];
GetPlayerName( playerid, name, 24 );
format( file, sizeof file, "Folder/%s.ini", name );
new INI:PlayerAcc = INI_Open( file );
INI_WriteInt( PlayerAcc, "Score", GetPlayerScore( playerid ) );
INI_WriteString( PlayerAcc, "Password", params );
INI_Close( PlayerAcc );
return 1;
}
Saving player score and password to file.
Re: [HELP]Y_ini register system -
tuuker - 06.03.2011
Too complicated example ******,
Re: [HELP]Y_ini register system -
Mean - 06.03.2011
Use the example I gave you.
Re: [HELP]Y_ini register system -
tuuker - 06.03.2011
oh lol wtf i didn't notice your post

thanks its better yeah.
Re: [HELP]Y_ini register system -
VivianKris - 05.06.2011
Quote:
Originally Posted by Mean
Use the example I gave you.
|
I want to get a Login system please.