28.06.2011, 04:13
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)
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)