04.02.2014, 09:00
Here's the log:
Line 1669:
Also, MAX_HOUSES is 200
Код:
[12:12:15] [debug] Run time error 4: "Array index out of bounds" [12:12:15] [debug] Accessing element at negative index -1 [12:12:15] [debug] AMX backtrace: [12:12:15] [debug] #0 0001fa7c in public cmd_exit (playerid=0, ... <1 argument>) at F:\Scripting\SAMP\Green Country RP\gamemodes\GM.pwn:1669 [12:12:15] [debug] #1 native CallLocalFunction () [00472000] from samp-server.exe [12:12:15] [debug] #2 00000580 in public OnPlayerCommandText (playerid=0, cmdtext[]=@0x0004713c "/exit") at F:\Scripting\SAMP\Green Country RP\pawno\include\zcmd.inc:104
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,5,hInfo[InHouse[playerid]][EnterX],hInfo[InHouse[playerid]][EnterY],hInfo[InHouse[playerid]][EnterZ]))