14.01.2011, 16:16
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;
}