Please help me with this bit of script
#1

I don't get why I am getting errors on this code:

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)