10.09.2011, 17:48
You open a function, but dont close it.
Also, may i suggest you should use ZCMD, since its faster then strcmp & its easier to use?
pawn Code:
if(strcmp("/aflip", cmdtext, true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerScore(playerid, 100))
{
new vehicle;
new Float:zangle;
vehicle = GetPlayerVehicleID(playerid);
GetVehicleZAngle(vehicle,zangle);
SetVehicleZAngle(vehicle,zangle);
SendClientMessage(playerid, COLOR_NAVY, "[APS]Vehicle Flipped");
return 1;
} else return SendClientMessage(playerid, COLOR_NAVY, "You dont have 100 score!");
} else return SendClientMessage(playerid, COLOR_NAVY, "Youre not in a vehicle");
return 1;
}