[Help] Indexed errors? o.O
#1

Ok my code is

Код:
if(PlayerInfo[Mute][playerid] == 1)
		{
		SendClientMessage(playerid, TEAM_CYAN_COLOR, "   You can't speak, you have been muted !");
		return 1;
	        }
if(PlayerInfo[PlayerCuffed][playerid] > 0)
		{
                SendClientMessage(playerid, COLOR_GREY, " You cannot do this while Cuffed !");
                return 1;
		}
GetPlayerName(playerid, sendername, sizeof(sendername));
GiveNameSpace(sendername);
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
	{
	idx++;
	}
	new offset = idx;
	new result[128];
	while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
	{
	result[idx - offset] = cmdtext[idx];
	idx++;
	}
        result[idx - offset] = EOS;
	if(!strlen(result))
And the rest doesnt matter but the problem is:

Код:
error 033: array must be indexed (variable "Mute")
error 033: array must be indexed (variable "PlayerCuffed")
Reply


Messages In This Thread
[Help] Indexed errors? o.O - by BlacK_PT - 31.08.2010, 14:06
Re: [Help] Indexed errors? o.O - by Grim_ - 31.08.2010, 14:12
Re: [Help] Indexed errors? o.O - by BlacK_PT - 31.08.2010, 14:18
Re: [Help] Indexed errors? o.O - by Norck - 31.08.2010, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)