09.01.2011, 13:51
(
Последний раз редактировалось Outcast; 09.01.2011 в 14:30.
Причина: typo
)
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:
Please help me out a bit. Thanks
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; }