[Ajuda] Debug na callback
#1

Fala rapaziada!
A um tempo venho percebendo esse debug no Log, nгo consegui identificar o erro pode ajudar?

Debug no Log:
Код:
[13:54:21] [debug] Run time error 4: "Array index out of bounds"
[13:54:21] [debug]  Accessing element at negative index -1
[13:54:21] [debug] AMX backtrace:
[13:54:21] [debug] #0 0014bdec in public putInVehicle (5) from NFS.amx
Quando й usado:
Код:
SetTimerEx("putInVehicle", 1500, 0, "i", x);
Callback:
Код:
callBack:: putInVehicle(playerid){

	if(PlayerInfo[playerid][pInCorrida]){

	    PutPlayerInVehicle(playerid, PlayerInfo[playerid][pCarroId], 0);

        PlayerInfo[playerid][pActualCarro] = PlayerInfo[playerid][pCarroId];

	   	new Float:v[3];
	    GetVehiclePos(PlayerInfo[playerid][pCarroId],v[0],v[1],v[2]);
	    SetVehiclePos(PlayerInfo[playerid][pCarroId],v[0],v[1],v[2]);

		if (PlayerInfo[playerid][pCarroId] != INVALID_VEHICLE_ID) {
		    setTunning(playerid);
		    
		    new corridaid = PlayerInfo[playerid][pInCorrida];

		    if(corridaInfo[corridaid][rTipo] == 3 && corridaInfo[corridaid][rLadrao] == playerid){

		        SetVehicleHealth(PlayerInfo[playerid][pCarroId], 250.0);
				corridaInfo[corridaid][rTempo] = 0;
		    }
		}
	}
}
Desde-jб agradeзo
Reply


Messages In This Thread
Debug na callback - by Skudinhu - 25.05.2016, 19:22
Re: Debug na callback - by WLSF - 25.05.2016, 19:57
Re: Debug na callback - by Skudinhu - 25.05.2016, 20:02
Re: Debug na callback - by ViniBorn - 26.05.2016, 01:58
Re: Debug na callback - by Skudinhu - 26.05.2016, 02:47
Re: Debug na callback - by n0minal - 26.05.2016, 03:56
Re: Debug na callback - by Skudinhu - 26.05.2016, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)