Help with strings
#1

What's worng here?

Код:
	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;
    }
Error:
Код:
warning 229: index tag mismatch (symbol "FactionInfo")
Line
Код:
facdocara = FactionInfo[facid][facname];
FactionInfo
Код:
enum Factioninfos
{
    ID,
    facname[32],
	...
}
new FactionInfo[MAX_FACTIONS][Factioninfos];
Reply


Messages In This Thread
Help with strings - by luccagomes15 - 26.09.2015, 23:57
Re: Help with strings - by Jefff - 27.09.2015, 00:39
AW: Help with strings - by Kaliber - 27.09.2015, 01:44
Re: Help with strings - by Jefff - 27.09.2015, 14:33
Re: Help with strings - by luccagomes15 - 29.09.2015, 22:55
Re: Help with strings - by Jefff - 29.09.2015, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)