Hy!
Felesleges helyeken }-et tettél.
Itt a javított kód, nem teszteltem:
A [-et cseréld le majd [-re.
[pawn]
#include<a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,\"/lsair\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),1921.6812,-2234.7200,13.3785);
SetVehicleZAngle(GetPlayerVehicleID(playerid),178.8508);
}else{
SetPlayerPos(playerid,1952.8165,-2244.9175,13.5469);
SetPlayerFacingAngle(playerid,118.3632);
}
return 1;
}
if(strcmp(cmdtext,\"/ls\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),2504.4214,-1685.8881,13.3810);
SetVehicleZAngle(GetPlayerVehicleID(playerid),9.1553);
}else{
SetPlayerPos(playerid,2495.3582,-1688.5752,13.8918);
SetPlayerFacingAngle(playerid,357.8066);
}
return 1;
}
if(strcmp(cmdtext,\"/lvair\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),1328.7286,1278.2839,10.6519);
SetVehicleZAngle(GetPlayerVehicleID(playerid),0.1122);
}else{
SetPlayerPos(playerid,1318.8826,1253.4739,10.8203);
SetPlayerFacingAngle(playerid,356.8642);
}
return 1;
}
if(strcmp(cmdtext,\"/lv\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),2161.1797,1686.6118,10.5834);
SetVehicleZAngle(GetPlayerVehicleID(playerid),9.7638);
}else{
SetPlayerPos(playerid,2190.0850,1677.0909,11.4821);
SetPlayerFacingAngle(playerid,91.1307);
}
return 1;
}
if(strcmp(cmdtext,\"/sfair\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),-1361.4775,-246.0595,13.9757);
SetVehicleZAngle(GetPlayerVehicleID(playerid),314.7186);
}else{
SetPlayerPos(playerid,-1376.4330,-258.5330,14.1440);
SetPlayerFacingAngle(playerid,315.6454);
}
return 1;
}
if(strcmp(cmdtext,\"/sf\",true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),-1985.8477,293.9496,34.6077);
SetVehicleZAngle(GetPlayerVehicleID(playerid),90.3418);
}else{
SetPlayerPos(playerid,-1966.2665,294.0133,35.4688);
SetPlayerFacingAngle(playerid,90.8295);
}
return 1;
}
return 0;
}[/pawn]
fluv: Nincs mit!