Unknown Command
#1

So, whenever I use this command on the server, I get an error for unknown command. Maybe it's just because I'm not noticing something, but I honestly feel like nothing is wrong with this command.

Код:
CMD:createfaction(playerid, params[])
{
	new factionname[32], query[128];
	if(sscanf(params, "s[32]", factionname)) return SendClientMessage(playerid, cred, "USAGE: /createfaction [factionname]");
	fInfo[Total_Factions_Created][ID] = Total_Factions_Created;
	fInfo[Total_Factions_Created][Name] = factionname;
	format(query, sizeof(query), "INSERT INTO `factiondata` (id, name) VALUES('%i', '%s')", Total_Factions_Created, fInfo[Total_Factions_Created][Name]);
	mysql_query(query);
	Total_Factions_Created++;
	return 1;
}
Reply


Messages In This Thread
Unknown Command - by Joshayersm - 13.10.2014, 06:07
Re: Unknown Command - by YanLanger - 13.10.2014, 06:31
Re: Unknown Command - by Joshayersm - 13.10.2014, 06:36
Re: Unknown Command - by YanLanger - 13.10.2014, 06:36
Re: Unknown Command - by Joshayersm - 13.10.2014, 06:47
Re: Unknown Command - by AnnaSB - 13.10.2014, 07:47
Re: Unknown Command - by Joshayersm - 13.10.2014, 08:18
Re: Unknown Command - by Joshayersm - 13.10.2014, 08:35
Re: Unknown Command - by AnnaSB - 13.10.2014, 08:36
Re: Unknown Command - by Joshayersm - 13.10.2014, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)