30.08.2011, 13:28
Hello,
My skin is saving when I /q. But when I throw a server restart, it's setted back to CJ.
What's wrong with my GMX? Nothing I think so.
GMX:
SaveUserDate
My skin is saving when I /q. But when I throw a server restart, it's setted back to CJ.
What's wrong with my GMX? Nothing I think so.
GMX:
pawn Код:
//-----[Server GMX]-----
CMD:gmx(playerid, params[])
{
SaveUserDate(playerid);
SetTimer("Gmx",3000,false);
SendRconCommand("gmx");
return 1;
}
pawn Код:
forward SaveUserDate(playerid);
public SaveUserDate(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
INI_Close(File);
return true;
}