I have a Problem o.o
#1

What is the problem in this?

new Buyableveh1;

public OnGameModeInit()
{
Buyableveh1 = CreateVehicle(481,47.0560,1157.3497,18.1752,178.13 13,3,3, 60);
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetPlayerVehicleID(playerid) == Buyableveh1)
{
ShowPlayerDialog(playerid,1001,DIALOG_STYLE_LIST," Vehicle","Start\nBuy (7000$)\nSell\nVehicleID\nLeave Vehicle","OK", "CLOSE");
}
}
}

I can't see the dialog, if i go in the vehicle :S Pls help
(Sorry for my bad english)
Reply
#2

don't working :S
Reply
#3

Lol, GetPlayerVehicleID will return 0 in OnPlayerEnterVehicle, because he didnt entered the car yet. Also, how the f... player state can be driver, if he just started entering the car?

if(vehicleid == Buyableveh1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)