11.02.2017, 18:57
Quote:
|
Код:
CMD:teszt(playerid, params[]) {
SendClientMessage(playerid, COLOR_ADMINMSG, "wtf");
MessageToAdmins(playerid, COLOR_DEATHRED, "asd");
return 1;
}
Код:
pub:MessageToAdmins(playerid, color, str[])
{
for(new i=0; i<=MAX_PLAYERS; i++) { //Error is prolly i <= MAX_PLAYERS
if(Player[i][admin] > 0) SendClientMessage(i, color, str);
}
return 1;
}
|
The loop is trying to access the 200th value which doesnt exist..
So it becomes 'Array out of bound'..
Change it to
PHP код:
for(new i=0; i < MAX_PLAYERS; i++) {


