13.10.2014, 06:07
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; }