Y_INI [HELP]
#8

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;
}
Reply


Messages In This Thread
Y_INI [HELP] - by park4bmx - 13.01.2011, 17:04
Re: Y_INI [HELP] - by park4bmx - 13.01.2011, 17:58
Re: Y_INI [HELP] - by park4bmx - 14.01.2011, 15:25
Re: Y_INI [HELP] - by Jochemd - 14.01.2011, 15:29
Re: Y_INI [HELP] - by park4bmx - 14.01.2011, 16:05
Re: Y_INI [HELP] - by Jochemd - 14.01.2011, 16:06
Re: Y_INI [HELP] - by park4bmx - 14.01.2011, 16:08
Re: Y_INI [HELP] - by park4bmx - 14.01.2011, 16:16
Re: Y_INI [HELP] - by Jochemd - 14.01.2011, 16:29
Re: Y_INI [HELP] - by park4bmx - 14.01.2011, 16:57
Re: Y_INI [HELP] - by Jochemd - 14.01.2011, 16:58
Re: Y_INI [HELP] - by park4bmx - 14.01.2011, 17:19
Re: Y_INI [HELP] - by park4bmx - 15.01.2011, 09:13
Re: Y_INI [HELP] - by park4bmx - 15.01.2011, 15:15
Re: Y_INI [HELP] - by Zh3r0 - 15.01.2011, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)