27.07.2014, 17:53
Quote:
pawn Код:
|
OT: You used =! while the operator is !=.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
new id = GetVehicleID(vehicleid);
if(IsValidVehicle(id) && VehicleCreated[id] == VEHICLE_PLAYER)
{
if(PlayerName(playerid) != VehicleOwner[id])
{
SendClientMessage(playerid, COLOR_GREY, "You don't have the keys of this vehicle!");
RemovePlayerFromVehicle(playerid);
}
else return SendClientMessage(playerid, COLOR_GREY, "This vehicle is yours.");
}
}
return 1;
}
See: https://sampwiki.blast.hk/wiki/Control_Structures#Operators