05.08.2010, 01:36
(
Последний раз редактировалось leandro123456; 05.08.2010 в 02:19.
)
fui compilar um FS, mas ele deu esse erro
O erro deve estar nesse codigo.
Se puderem me ajudar, eu quero saber como resolvo esse erro.
pawn Код:
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(288) : error 030: compound statement not closed at the end of file (started at line 258)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/piramede", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2323.8047,1283.1387,97.5221);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2323.8047,1283.1387,97.5221);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
if (strcmp("/minidrop", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 1342.5997,3674.4978,311.0601);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1342.5997,3674.4978,311.0601);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
return 0;
}