11.01.2010, 17:03
if (strcmp("/Stunt", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2103.561,874.452,11.110);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2103.561,874.452,11.110);
SetPlayerFacingAngle(playerid,0.0);
}
return 1;
}
return 0;
}
O erro й esse
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2103.561,874.452,11.110);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2103.561,874.452,11.110);
SetPlayerFacingAngle(playerid,0.0);
}
return 1;
}
return 0;
}
O erro й esse
Quote:
C:\Documents and Settings\Administrador\Meus documentos\Rafael - Documentos\Progamas\gamemode\gamemodes\monster.pwn (252) : error 030: compound statement not closed at the end of file (started at line 222) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |