Problem with warning on onplayerentervehicle
#3

Actually, when you have if(, you need to put = two times. ==. Well, you missed it.

Correct code:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == Veh || Veh2 || Veh3 || Veh4 || Veh5 || Veh6 || Veh7 || Veh8 || Veh9 || Veh10 || Veh11)
    {
        if(PlayerInfo[playerid][pFaction] >= 1)
        {
            SendClientMessage(playerid, -1, ""COL_CYAN"*"COL_GREY"Usli ste u sluzbeno vozilo.");
        }
    }
    else
    {
        SendClientMessage(playerid, -1, ""COL_CYAN"*"COL_GREY"Ne mozete voziti ovo vozilo jer niste u sluzbi.");
        RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
EDIT: Didn't saw the above guy, sorry. I didn't refreshed page.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)