18.01.2011, 13:29
Strange, i tryed testing it when the player is in any vehicle and no vehicle. when i used no vehicle it printed fine in the console but when i added the vehicle in it didn't print. So i'm guessing some other function has a part is not allowing it to work.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SUBMISSION)
{
if(IsPlayerInAnyVehicle(playerid))
{
printf("Played %s has started a van mission"); //didn't print
}
}
return 1;
}
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SUBMISSION)
{
printf("Played %s has started a van mission"); // did print.
}
return 1;
}