09.01.2011, 17:20
I want to save some player's name in a .ini file. It's for my faction script and I can't make it to save as text, instead it always save as a number (82).
What am I doing wrong?
Код:
COMMAND:setleader1(playerid, params[]) { new leaderid; if(sscanf(params, "u", leaderid)) return SendClientMessage(playerid,COLOR_WHITE,"Usage: /setleader1 [playerID]"); GetPlayerName(leaderid, FactionSFPD[playerid][fLeader], MAX_PLAYER_NAME); dini_IntSet(SERVER_FACTION_SFPD_FILE, "Leaderl",FactionSFPD[playerid][fLeader]); SendClientMessage(playerid, COLOR_YELLOW, "You are now a leader of SFPD (faction 1)"); return 1; }