RemovePlayerFromVehicle not work
#2

Quote:
Originally Posted by Louris
Посмотреть сообщение
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
PutPlayerInVehicle(playerid, vehicleid, 0);
if(DM[playerid]) return SendClientMessage(playerid, 0xDEEE20FF, "Vaћinėti su maљina DM zonoje draudћiama!");
if(DM[playerid]) return RemovePlayerFromVehicle(playerid);
   	return 1;
}
This line:

Код:
if(DM[playerid]) return SendClientMessage(playerid, 0xDEEE20FF, "Vaћinėti su maљina DM zonoje draudћiama!");
works good, but this line:

Код:
if(DM[playerid]) return RemovePlayerFromVehicle(playerid);
Doesn't work, nothing happens.
try this
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
PutPlayerInVehicle(playerid, vehicleid, 0);
if(DM[playerid])
    {
    SendClientMessage(playerid, 0xDEEE20FF, "Vaћinėti su maљina DM zonoje draudћiama!");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
}
Reply


Messages In This Thread
RemovePlayerFromVehicle not work - by Louris - 29.11.2012, 12:34
Re: RemovePlayerFromVehicle not work - by jueix - 29.11.2012, 12:38
Re: RemovePlayerFromVehicle not work - by Louris - 29.11.2012, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)