Hi, i am trying to make a jump command but eacht time i compile it says something about the facing angle.. what is the problem ?
Код:
// Jump
if (strcmp("/jump", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
new Float:X;
new Float:Y;
new Float:Z;
new VehicleID;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, X, Y, Z + 800.00);
SetPlayerFacingAngle(playerid,Ang);
GivePlayerWeapon(playerid,46,1);
}
else
{
new Float:X;
new Float:Y;
new Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z + 800.00);
SetPlayerFacingAngle(playerid,Ang);
GivePlayerWeapon(playerid,46,1);
GameTextForPlayer(playerid, "~w~Cya !",8000,5);
}
return 1;
You could do it with less lines.. :S,