13.03.2015, 16:13
Код:
Run time error 4: "Array index out of bounds" Accessing element at index 6 past array upper bound 5 AMX backtrace: #0 00039220 in public smsmessages () from ServerFile.amx
Код:
public smsmessages() { new rNumber, Check = 0; do{ for(new i=0; i<sizeof(sms); i++) if(sms[i] != 0) Check++; if(Check == sizeof(sms)) for(new i=0; i<sizeof(sms); i++) rCheckList[i] = 0; rNumber = random(sizeof(smslist)); }while(sms[rNumber]); SendClientMessageToAll(YELLOW, smslist[rNumber]); sms[rNumber] = 1; }