07.08.2014, 03:15
Здравствуйте уважаемые пользователи SA-MP.COM
Код где ошибка:
Строки:
и
Crashdetect:
Код где ошибка:
PHP код:
if (newkeys == 1024)
{
new h = GetPlayerVirtualWorld(playerid)-100;
if (!IsPlayerInRangeOfPoint(playerid, 7.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ])) return 1;
if (GetPlayerInterior(playerid) == 0) return 1;
if (GetPlayerVirtualWorld(playerid)-100 < 1) return 1;
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,HouseInfo[h][hEnterX],HouseInfo[h][hEnterY],HouseInfo[h][hEnterZ]);
}
PHP код:
new h = GetPlayerVirtualWorld(playerid)-100;
PHP код:
if (GetPlayerVirtualWorld(playerid)-100 < 1) return 1;
PHP код:
[06:35:26] [debug] AMX backtrace:
[06:35:26] [debug] #0 000cd458 in public OnPlayerKeyStateChange (0x00000001, 0x00000400, 0x00000404) from new.amx
[06:35:26] [debug] Run time error 4: "Array index out of bounds"
[06:35:26] [debug] Accessing element at negative index -100