31.08.2010, 14:06
Ok my code is
And the rest doesnt matter but the problem 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))
Код:
error 033: array must be indexed (variable "Mute") error 033: array must be indexed (variable "PlayerCuffed")