14.09.2015, 06:21
CoDE:
if(PlayerInfo[playerid][InDM] == 1)
{
new aName[MAX_PLAYER_NAME], string2[128];
GetPlayerName(playerid, aName,sizeof(aName));
format(string2,sizeof(string2),"[DM] %s[%i] : {FFFFFF}%s",aName,playerid,text);
printf(string2);
SendClientMessageToAll(GetPlayerColor(playerid),st ring2);
return 0;
}
Error:
error 033: array must be indexed (variable "InDM")
if(PlayerInfo[playerid][InDM] == 1)
{
new aName[MAX_PLAYER_NAME], string2[128];
GetPlayerName(playerid, aName,sizeof(aName));
format(string2,sizeof(string2),"[DM] %s[%i] : {FFFFFF}%s",aName,playerid,text);
printf(string2);
SendClientMessageToAll(GetPlayerColor(playerid),st ring2);
return 0;
}
Error:
error 033: array must be indexed (variable "InDM")