26.09.2015, 23:57
What's worng here?
Error:
Line
FactionInfo
Код:
CMD:ad(playerid, params[]) { new string[128], adprice, result[70]; if(sscanf(params,"s[70]", result)) return SendClientMessage(playerid, -1, "Use: /ad [text]"); if(scorelevel[playerid] < 500) return SendClientMessage(playerid, COLOR_RED, "You need 500 scores to use this command!"); adprice = 1000; if(GetPlayerMoneyEx(playerid) < adprice) { format(string, sizeof(string), "You do not have %i $", adprice); SendClientMessageToAll(COLOR_WHITE, string); return 1; } if(mandouAD[playerid] == false) { SendClientMessage(playerid, -1, "Have you ever sent a recent announcement! Wait!"); return 1; } new facdocara[32]; if(fmembro[playerid] == 0) { facdocara = "NO-FACTION"; } else if(fmembro[playerid] > 0) { new facid = fmembro[playerid]; facdocara = FactionInfo[facid][facname]; } format(string, sizeof(string), "[AD] [%s] %s(ID:%i): %s", facdocara, PlayerName(playerid), playerid, result); SendClientMessageToAll(COLOR_AD, string); GivePlayerMoneyEx(playerid,-adprice); mandouAD[playerid] = true; SetTimerEx("AdAgain", 60000, 0, "i", playerid); return 1; }
Код:
warning 229: index tag mismatch (symbol "FactionInfo")
Код:
facdocara = FactionInfo[facid][facname];
Код:
enum Factioninfos { ID, facname[32], ... } new FactionInfo[MAX_FACTIONS][Factioninfos];