Thread: Y_INI [HELP]
View Single Post
Old 14/01/2011, 04:16 PM   #8
park4bmx
High-roller
 
park4bmx's Avatar
 
Join Date: Dec 2009
Location: Samokov,Bulgaria
Posts: 2,364
Reputation: 240
Default Re: Y_INI [HELP]

Still doesnt save ??
pawn Code:
if(strcmp(cmd,"/test",true) == 0){
new PlayerFile[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(PlayerFile,sizeof PlayerFile,"/mRegistration/%s.ini",name);
new INI:PlayerAccount = INI_Open(PlayerFile);
INI_WriteInt(PlayerAccount,"MONEY",GetPlayerMoney(playerid));
INI_WriteInt(PlayerAccount,"SCORE",GetPlayerScore(playerid));
INI_Close(PlayerAccount);
SendClientMessage(playerid,COLOR_RED,"TEST DONE");
return 1;
}
park4bmx is offline