Save Stats Problem
#1

Hello evryone my name is Mike/Spectro
Ok i have created my own gamemode and it has user system(register/login/ranks/adminsys) and that
But i have a problem
In 70% of cases the stats will not save
It just shows all as 0
Please help?
And if you can help tell me what codes i need to post!
Reply
#2

What are you using?
Dini, normal fopen-fclose? :O
Reply
#3

Dini
Reply
#4

Let's make a test:

pawn Код:
if(strcmp("/testdini", cmdtext, true, 10) == 0)
{
     new string[128];
     new PlayerName[MAX_PLAYER_NAME];
     GetPlayerName(playerid, PlayerName, sizeof(PlayerName);
     format(string, sizeof(string), "%s.ini", PlayerName);
     dini_IntSet(string, "ranks", 6);
     return 1;
}
Replace the dini-key by the real key and look if it keep saved :O
Reply
#5

Oh well i fixed it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)