14.07.2010, 17:05
I have little problem!
PHP код:
if (strcmp("/skatepark", cmdtext, true, 10) == 0)
{
new Vehid, Vehmodel;
Vehid = GetPlayerVehicleID(playerid);
Vehmodel = GetVehicleModel(Vehid);
if(Vehmodel == 571)
{
SendClientMessage(playerid, 0xAA3333AA, "Sk8park!");
return 1;
}
else if (IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1887.5681, -1389.8606, 13.5703);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 87.9845);
SetPlayerInterior(playerid, 0);
}
else if (!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, 1887.5681, -1389.8606, 13.5703);
SetPlayerFacingAngle(playerid, 87.9845);
SetPlayerInterior(playerid, 0);
}
return 1; // this line i get "warning 217: loose indentation"
}
return 0;
}