01.05.2016, 15:59
Код:
23:03:37] [debug] Accessing element at negative index -1 [23:03:37] [debug] AMX backtrace: [23:03:37] [debug] #0 00597570 in ?? (... <1 argument>) at C:\Users\Administrator\Desktop\mode\mode\mode\gamemodes\NGRP.pwn:102998 [23:03:37] [debug] #1 0001402c in public OnPlayerEnterCheckpoint (playerid=13) at C:\Users\Administrator\Desktop\mode\mode\mode\pawno\include\YSI\y_hooks/impl.inc:1146 [23:03:46] [debug] Run time error 4: "Array index out of bounds"
Код:
for(new i = 0; i < sizeof(FamilyInfo); i++) { if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName],true) == 0) { Misc_Save(); FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(200); } } }