Help with a cookie system. ++rep
#3

Quote:
Originally Posted by coole210
Посмотреть сообщение
pawn Код:
PlayerInfo[playerid][pCookies] = PlayerInfo[playerid][pCookies] - 5;
EDIT:

Just read the rest of the question.

To save it instantly you check how it saves in OnPlayerDisconnect and take the crucial parts to save cookies.
Thanks a ton.

EDIT: I've added
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
     INI_WriteInt(File,"Cookies",PlayerInfo[playerid][pCookies]);
     INI_Close(File);
     PlayerInfo[pid][pCookies] ++;
To the command /givecookie, but it still doesn't save instantly. Am I forgetting something?
Reply


Messages In This Thread
Help with a cookie system. ++rep - by rangerxxll - 05.03.2012, 23:38
Re: Help with a cookie system. ++rep - by coole210 - 06.03.2012, 00:26
Re: Help with a cookie system. ++rep - by rangerxxll - 06.03.2012, 00:38
Re: Help with a cookie system. ++rep - by Chrillzen - 06.03.2012, 03:59
Re: Help with a cookie system. ++rep - by rangerxxll - 06.03.2012, 04:25
Re: Help with a cookie system. ++rep - by Chrillzen - 06.03.2012, 04:47
Re: Help with a cookie system. ++rep - by rangerxxll - 06.03.2012, 04:57
Re: Help with a cookie system. ++rep - by T0pAz - 06.03.2012, 05:08
Re: Help with a cookie system. ++rep - by rangerxxll - 06.03.2012, 05:44

Forum Jump:


Users browsing this thread: 2 Guest(s)