26.06.2011, 17:55
Hey all.
Why does this only works for rent1?
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;
}