Problem
#1

Hey all.
Why does this only works for rent1?

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new v;
    v = rent1||rent2;
    if ((newstate == PLAYER_STATE_DRIVER))
    {
        if(GetPlayerVehicleID(playerid) == v )
        {
       
        ShowPlayerDialog(playerid,RENT,DIALOG_STYLE_MSGBOX,"Vehicle Rent","Do you want to rent this vehicle for $100?","Yes","No");
        }
    }

    return 1;
}
Reply
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if (newstate == PLAYER_STATE_DRIVER)
    {
        if(GetPlayerVehicleID(playerid) == rent1 || GetPlayerVehicleID(playerid) == rent2 )
        {
            ShowPlayerDialog(playerid,RENT,DIALOG_STYLE_MSGBOX,"Vehicle Rent","Do you want to rent this vehicle for $100?","Yes","No");
        }
    }
    return 1;
}
This will work
Reply
#3

Ah ye sthanks. I did this earlier but I forgot how to do this. Now I rememberi t again. Thanks !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)