problems with my 'Ranks' 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: problems with my 'Ranks' system (
/showthread.php?tid=133829)
problems with my 'Ranks' system -
pmk1 - 14.03.2010
Hey guys! i'm now doing my own rank system(very moded version of Toniu's), the ranks works, everything is ok exept that when i quit playing and come back, well, my rank is reset to 0. How can i make that it would save in a player.txt (example)?
Thanks For Answers!
Note: ( I already have a register / login fliterscript)
Re: problems with my 'Ranks' system -
Deat_Itself - 14.03.2010
Quote:
Note: ( I already have a register / login fliterscript)
|
whish register / login FS are u using ?
&
For saving rank system etc. You have to use dini dudb etc.
http://forum.sa-mp.com/index.php?topic=981.0
Re: problems with my 'Ranks' system -
pmk1 - 14.03.2010
i'm using LuxAdmin script, and i already have dini and dudb just don't know how to make it to work, the Howto link in Dracoblue's page is broken.
Re: problems with my 'Ranks' system -
pmk1 - 14.03.2010
how can i write in a file with Dini? Thanks for answers
Re: problems with my 'Ranks' system -
Deat_Itself - 14.03.2010
Quote:
Originally Posted by pmk1
how can i write in a file with Dini? Thanks for answers
|
with dini
pawn Код:
dini_IntSet(udb_encode(filename), "this will written in that file", 0);// this will write like this in folder 'this will written in that file=0
Re: problems with my 'Ranks' system -
pmk1 - 14.03.2010
nah wait, i got a better idea, at least of overwriting a file, i'll make on playerupdate something so if player score is 7, it will be rank 1, etc So it will prevent then nickname stealing. Do you know whats the command for? I did it but it was in ongameinit i think xD i erased it, and now i don't remember lol...
Re: problems with my 'Ranks' system -
pmk1 - 14.03.2010
ahh i just found it

its:
if(GetPlayerScore(playerid) == 5)
{
SetPlayerRank(playerid, 1);
}