180° vehicle rotation on key press
#6

Quote:
Originally Posted by Puppy
Посмотреть сообщение
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkes)
{
       if(newkeys & KEY_SUBMISSION_KEY)
       {
              SetVehicleZAngle(GetPlayerVehicleID(playerid), 180.0);
              return 1;
       }
       return true;
}
This should rotate the vehicle's Z Angle 180 degrees. Is this what you mean?
(85) : error 025: function heading differs from prototype
(86) : error 021: symbol already defined: "OnPlayerKeyStateChange"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


The second error might be caused by the fact i already used the OnPlayerKeyStateChange earlier in the script
Reply


Messages In This Thread
180° vehicle rotation on key press - by VinnyOne - 21.02.2015, 17:40
Re: 180° vehicle rotation on key press - by Pottus - 21.02.2015, 17:43
Re: 180° vehicle rotation on key press - by Puppy - 21.02.2015, 17:44
Re : Re: 180° vehicle rotation on key press - by VinnyOne - 21.02.2015, 17:45
Re: 180° vehicle rotation on key press - by Pottus - 21.02.2015, 17:47
Re : Re: 180° vehicle rotation on key press - by VinnyOne - 21.02.2015, 17:48
Re : Re: 180° vehicle rotation on key press - by VinnyOne - 21.02.2015, 17:50
Re: Re : Re: 180° vehicle rotation on key press - by AndySedeyn - 21.02.2015, 19:13
Re: 180° vehicle rotation on key press - by Patrik356b - 22.02.2015, 09:49

Forum Jump:


Users browsing this thread: 3 Guest(s)