problems with my 'Ranks' system
#1

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)
Reply
#2

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
Reply
#3

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.
Reply
#4

how can i write in a file with Dini? Thanks for answers
Reply
#5

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
Reply
#6

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

ahh i just found it its:
if(GetPlayerScore(playerid) == 5)
{
SetPlayerRank(playerid, 1);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)