What is wrong with it?
#2

You can't use GetPlayerVehicleID( ) after SetVehicleToRespawn( ) because the player isn't anymore in the vehicle.

Change
Код:
if(dialogid == 5) {
        if(response) {
            new Float:x,Float:y,Float:z,Float:ang;
            SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
            GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
            GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
            SetVehicleToRespawn(GetPlayerVehicleID(playerid));
            SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
            PutPlayerInVehicle(playerid,GetPlayerVehicleID(playerid),0);
            SetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
        }
    }
with this:
Код:
if(dialogid == 5) 
{
	if( !response ) 
		return 1;

	new Float:x, Float:y, Float:z, Float:ang, vehicleid;
	vehicleid = GetPlayerVehicleID( playerid );

	SetVehicleNumberPlate( vehicleid, inputtext );
	GetVehiclePos( vehicleid, x, y, z );
	GetVehicleZAngle( vehicleid, ang );
	SetVehicleToRespawn( vehicleid );
	SetVehiclePos( vehicleid, x, y, z );
	PutPlayerInVehicle( playerid, vehicleid, 0 );
	SetVehicleZAngle( vehicleid, ang );

}
Reply


Messages In This Thread
What is wrong with it? - by Kostas' - 01.11.2011, 13:54
Re: What is wrong with it? - by IstuntmanI - 01.11.2011, 14:01
Re: What is wrong with it? - by [L3th4l] - 01.11.2011, 14:01
Re: What is wrong with it? - by Kostas' - 01.11.2011, 14:10

Forum Jump:


Users browsing this thread: 2 Guest(s)