Need help.. Dialog not showing up.. (Giving + rep)
#3

OnPlayerEnterVehicle is called when the player starts entering the vehicle. PLAYER_STATE_DRIVER is the state when the player is actually the driver, not entering as the driver. Using OnPlayerStateChange and checking if the newstate is driver is better.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER) ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Vehicle Controls", "Lights\nTrunk\nHood\nAlarm", "Select", "Cancel");
    return 1;
}
Reply


Messages In This Thread
Need help.. Dialog not showing up.. (Giving + rep) - by trapped1 - 20.01.2012, 07:57
Re: Need help.. Dialog not showing up.. (Giving + rep) - by sabretur - 20.01.2012, 08:17
Re: Need help.. Dialog not showing up.. (Giving + rep) - by [HiC]TheKiller - 20.01.2012, 08:20
Re: Need help.. Dialog not showing up.. (Giving + rep) - by trapped1 - 20.01.2012, 08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)