Name won't save, help
#1

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).

Код:
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;
	}
What am I doing wrong?
Reply


Messages In This Thread
Name won't save, help - by Outcast - 09.01.2011, 17:20
Re: Name won't save, help - by JaTochNietDan - 09.01.2011, 17:22
AW: Name won't save, help - by Kmitska - 09.01.2011, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)