Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. [09:22:30] [debug] Run time error 4: "Array index out of bounds"
  2. [09:22:30] [debug] Accessing element at negative index -1
  3. [09:22:30] [debug] AMX backtrace:
  4. [09:22:30] [debug] #0 004c3bd4 in public pc_cmd_back (playerid=255) at D:\Flin\.cp1251\main.pwn:21790
  5. [09:22:30] [debug] #1 006691cc in public ac_OnPlayerClickPlayerTextDraw (playerid=255, PlayerText:playertextid=30) at D:\Flin\.cp1251\main.pwn:57301
  6. [09:22:30] [debug] #2 00031fc0 in public OnPlayerClickPlayerTextDraw (playerid=255, PlayerText:playertextid=30) at D:\Flin\pawno\include\nex-ac.inc:7358
  7.  
  8. 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))
  9. {
  10. new txd_max_value = GetMaxCountTextureGarage(p_temp[playerid][h_repair_txtid]);
  11. if(txd_max_value == -1) return SendError(playerid, "КОД: 7098 / Обратитесь на форум! %і", p_temp[playerid][h_repair_txtid]);
  12.  
  13. p_temp[playerid][shop_id]--;
  14. if(p_temp[playerid][shop_id] < 0) p_temp[playerid][shop_id] = (txd_max_value-1);
  15. h_info[h][h_garage_id][p_temp[playerid][h_repair_txtid]] = p_temp[playerid][shop_id];
  16. Garage_Repair(h);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement