20.12.2017, 20:37
Hi all
I have this in server_log
I have this in server_log
PHP код:
[16:46:39] [debug] Run time error 4: "Array index out of bounds"
[16:46:39] [debug] Attempted to read/write array element at negative index -245
[16:46:39] [debug] AMX backtrace:
[16:46:39] [debug] #0 00173be8 in public OnDialogResponse (... <5 arguments>) at grandlarc.pwn:17598
[16:46:39] [debug] #1 0001095c in public OnDialogResponse (playerid=18, dialogid=3, response=1, listitem=0, inputtext[]=@003200fc "Phone Number") at D:\GameMode RPG\pawno\include\fixes.inc:9569
PHP код:
case 0:
{
if(PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid, COLOR_GREY, "* Trebuie sa detii level 2+ pentru a-ti cumpara numar de telefon.");
if(PlayerInfo[playerid][pCash] < 20000) return SendClientMessage(playerid, COLOR_GREY, "* Nu ai bani suficienti.");
GivePlayerMoneyEx(playerid, 0, 20000);
GameTextForPlayer(playerid, "~r~-20.000$", 5000, 1);
---- THIS IS THE LINE: if(BizzInfo[B][bProducts] > 0) BusinessMoney(B, 10000, 1);[/COLOR]
if(BizzInfo[9][bProducts] > 0) BusinessMoney(9, 10000, 1);
PlayerInfo[playerid][pPnumber] = (100000+random(899999));
SendClientMessage(playerid, COLOR_WHITE, "* Foloseste comanda (/stats) pentru a-ti afla numarul de telefon.");
}