Help with making a faction
#1

I use zcmd and I try to make a command /setleader1 that would make a .ini file for SFPD in factions folder. I made it like I made PlayerInfo thing but for some reason the command wont execute and I get a message SERVER: Unknown command.

This is my code:
Код:
COMMAND:setleader1(playerid, params[])
	{
		new leaderid;
		new getname[30];
	   	if(sscanf(params, "i", leaderid)) return SendClientMessage(playerid,COLOR_WHITE,"Usage: /setleader1 [playerID]");
        dini_Create(SERVER_FACTION_SFPD_FILE);
        dini_IntSet(SERVER_FACTION_SFPD_FILE, "Leaderl",FactionSFPD[playerid][fLeader] = GetPlayerName(leaderid, getname, 30));
		return 1;
	}
Please help me out a bit. Thanks
Reply


Messages In This Thread
Help with making a faction - command won't work - by Outcast - 09.01.2011, 13:51
Re: Help with making a faction - by JaTochNietDan - 09.01.2011, 14:47
Re: Help with making a faction - by Outcast - 09.01.2011, 14:50
Re: Help with making a faction - by JaTochNietDan - 09.01.2011, 14:54
Re: Help with making a faction - by Outcast - 09.01.2011, 14:58
Re: Help with making a faction - by JaTochNietDan - 09.01.2011, 14:59
Re: Help with making a faction - by Outcast - 09.01.2011, 15:47
Re: Help with making a faction - by blackwave - 09.01.2011, 15:50
Re: Help with making a faction - by Outcast - 09.01.2011, 15:51
Re: Help with making a faction - by Calgon - 09.01.2011, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)