10.08.2009, 16:24
I don't get why I am getting errors on this code:
I am trying to make a code that lets the player use alt to flip their vehicle unless they are in a specific area. It's my first time using IsPlayerInArea so I might be making a bunch of noob errors
Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys) { if(IsPlayerInArea(2, -14.6085,1689.5648,453.8858, 2128.3269)); { (); } else { if(IsPlayerInAnyVehicle(playerid)) { if(newkeys &= 4) { new Float:ZAngle,Float:X,Float:Y,Float:Z,vehicleid; vehicleid = GetPlayerVehicleID(playerid); GetVehiclePos(vehicleid,X,Y,Z); GetVehicleZAngle(vehicleid,ZAngle); SetVehicleZAngle(vehicleid,ZAngle); SetVehiclePos(vehicleid,X,Y,Z+2); } } } return 1; }
I am trying to make a code that lets the player use alt to flip their vehicle unless they are in a specific area. It's my first time using IsPlayerInArea so I might be making a bunch of noob errors