RemovePlayerFromVehicle not work
#1

Код:
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.
Reply
#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
#3

Works, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)