Error on log
#1

Hi all

I have this in server_log

PHP код:
[16:46:39] [debugRun 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] [debugAMX 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(playeridCOLOR_GREY"* Trebuie sa detii level 2+ pentru a-ti cumpara numar de telefon.");
                    if(
PlayerInfo[playerid][pCash] < 20000) return SendClientMessage(playeridCOLOR_GREY"* Nu ai bani suficienti.");
                    
GivePlayerMoneyEx(playerid020000);
                    
GameTextForPlayer(playerid"~r~-20.000$"50001);
                    ---- 
THIS IS THE LINE: if(BizzInfo[B][bProducts] > 0BusinessMoney(B100001);[/COLOR]
                    if(
BizzInfo[9][bProducts] > 0BusinessMoney(9100001);
                    
PlayerInfo[playerid][pPnumber] = (100000+random(899999));
                    
SendClientMessage(playeridCOLOR_WHITE"* Foloseste comanda (/stats) pentru a-ti afla numarul de telefon.");
                } 
Reply
#2

Add the following to the top of the code and post what it prints in the console:
Код:
printf("%d", B);
Reply
#3

I put this:

The definition for B was the next one.

Quote:

new B = PlayerInfo[playerid][pLocal]-500;

If so, will it be solved?
Quote:

new B = 500-PlayerInfo[playerid][pLocal];

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)