Question

Perfect231
Освоившийся

При запуске выдаёт это:
 

Спойлер

[17:43:47] [debug] Run time error 4: "Array index out of bounds"
[17:43:47] [debug]  Accessing element at negative index -1
[17:43:47] [debug] AMX backtrace:
[17:43:47] [debug] #0 00bf1b34 in ExitBone (playerid=0) at C:\Users\Арт\Desktop\моды\20213\gamemodes\rendi.pwn:69754

 

Спойлер

if(dice_info[GetPVarInt(playerid,"Stol")-1][b_crupie] == playerid) dice_info[GetPVarInt(playerid,"Stol")-1][b_crupie] = INVALID_PLAYER_ID;

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
DEST
Maintainer

@Perfect231 перед обращением к ячейке массива с индексом GetPVarInt(playerid, "Stol")-1 проверяйте, что значение PVar не равен 0. 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Pulbusha
      By Pulbusha
      В далеком 2017-2018 году сущестовал сервер GTA-RP (возможно он существует и сейчас) Появилась мысль о создании крмп сервера в стиле старых проектов тех годов (GTA-RP, Radmir RP, Amazing RP). Скажите, будет ли интерес к такому серверу и вообще интересно ли это а также кто хотел бы присоединиться к разработке?