22.09.2018, 15:44
Then, do a debugging.
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Pickups[0])
{
print("pickup 1");
ChangeVehicle(playerid, 451);
return 1;
}
else if(pickupid == Pickups[1])
{
print("pickup 2");
ChangeVehicle(playerid, 411);
return 1;
}
return 1;
}