[Ajuda] Debug na callback
#7

Quote:
Originally Posted by ipsLeon
Посмотреть сообщение
Provavelmente o time tб jogando um playerid inexistente na sua call back, posta o cуdigo completo de onde o settimer й executado
Segue:
Код:
	        new Float:v[3];
	        GetVehiclePos(PlayerInfo[x][pCarroId],v[0],v[1],v[2]);
	        
	        new corridaid = PlayerInfo[x][pInCorrida];
	        
	        // Checar se o carro estб abaixo do nнvel do mar
			if (v[2] <= 0.1 && (corridaid != -1 && corridaInfo[corridaid][rTipo] != 4)){

					SetPVarInt(x, "varTeleport", gettime() + 10);
			
			    // Setar o carro a -150 metros abaixo do mar
			    // Ele volta automaticamente pra superfieie
			    
		        	SetVehiclePos(PlayerInfo[x][pCarroId],v[0],v[1],-150.0);
		        	PutPlayerInVehicle(x, PlayerInfo[x][pCarroId], 0);
		        	GetPlayerPos(x, PlayerInfo[x][pCheckPos][0], PlayerInfo[x][pCheckPos][1], PlayerInfo[x][pCheckPos][2]);

		        	SetTimerEx("putInVehicle", 1500, 0, "i", x);
			}
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)