18.11.2006, 05:21
lol what are you talking about? There saved in an array of strings to a file that is named to your nickname. When you connect it will check if your filename (stats-<EncodedNickName>). It saves to file...how can it not be permanant? They are not saved to your ID, if you pay closer attention to the code.
I have tested it completely and it works fine.
However yes i must of typed playerid accidentally instead of idplayer. Easily fixed. UPDATED!
Now the reason why i made it so it doesnt update the Score board is regular players will have scores very high and i thought the majority would rather the GameScore be for each individual session. And of course for compatability for "MoneyGrub" modes that display money as score.
Also i expected that people would use Set/Get Property instead of using the stats commands i set up. I just set it up as a basic fall back if people didnt want to create there own.
pawn Код:
if(fexist(encode(PlayerName(playerid))))
{
SendClientMessage(playerid, COLOR_YELLOW, "<SSU v1.1> Stats Restored!");
//Restore Stats.....
However yes i must of typed playerid accidentally instead of idplayer. Easily fixed. UPDATED!
Now the reason why i made it so it doesnt update the Score board is regular players will have scores very high and i thought the majority would rather the GameScore be for each individual session. And of course for compatability for "MoneyGrub" modes that display money as score.
Also i expected that people would use Set/Get Property instead of using the stats commands i set up. I just set it up as a basic fall back if people didnt want to create there own.