Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [09:22:30] [debug] Run time error 4: "Array index out of bounds"
- [09:22:30] [debug] Accessing element at negative index -1
- [09:22:30] [debug] AMX backtrace:
- [09:22:30] [debug] #0 004c3bd4 in public pc_cmd_back (playerid=255) at D:\Flin\.cp1251\main.pwn:21790
- [09:22:30] [debug] #1 006691cc in public ac_OnPlayerClickPlayerTextDraw (playerid=255, PlayerText:playertextid=30) at D:\Flin\.cp1251\main.pwn:57301
- [09:22:30] [debug] #2 00031fc0 in public OnPlayerClickPlayerTextDraw (playerid=255, PlayerText:playertextid=30) at D:\Flin\pawno\include\nex-ac.inc:7358
- if(IsPlayerInRangeOfPoint(playerid, 50.0, g_info[h_class-1][g_pX], g_info[h_class-1][g_pY], g_info[h_class-1][g_pZ]) && h+50 == GetPlayerVirtualWorld(playerid))
- {
- new txd_max_value = GetMaxCountTextureGarage(p_temp[playerid][h_repair_txtid]);
- if(txd_max_value == -1) return SendError(playerid, "КОД: 7098 / Обратитесь на форум! %і", p_temp[playerid][h_repair_txtid]);
- p_temp[playerid][shop_id]--;
- if(p_temp[playerid][shop_id] < 0) p_temp[playerid][shop_id] = (txd_max_value-1);
- h_info[h][h_garage_id][p_temp[playerid][h_repair_txtid]] = p_temp[playerid][shop_id];
- Garage_Repair(h);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement