07.05.2012, 18:59
No comando /plantarsuperbomba do meu gm ta dando esse erro oq fasso
Erro :
Comando :
Erro :
PHP код:
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 017: undefined symbol "EsperarBomba"
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
if(strcmp(cmd, "/plantarsuperbomba", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pLeader] == 7)
{
if(EsperarBomba[playerid] >= 1) return SendClientMessage(playerid, COLOR_RED, "Voce jб usou a bomba Recentemente, Espera alum tempo para usa-la novamente!");
if(!NuclearBomb[playerid][bombactive])
{
new Float:bx, Float:by, Float:bz, Float:ba;
GetPlayerPos(playerid, bx, by, bz);
GetPlayerFacingAngle(playerid, ba);
bx += (floatsin(-ba, degrees));
by += (floatcos(-ba, degrees));
NuclearBomb[playerid][Nuke] = CreateObject(3786, bx, by, bz, 0, 0, ba);
NuclearBomb[playerid][x] = bx;
NuclearBomb[playerid][y] = by;
NuclearBomb[playerid][z] = bz;
NuclearBomb[playerid][area] = 0;
new LuxZone[MAX_ZONE_NAME];
GetPlayer2DZone(i, LuxZone, MAX_ZONE_NAME);
LuxZoneB = LuxZone;
ApplyAnimation(playerid, "BOMBER","BOM_Plant_In",4.0,0,0,0,0,0);
NuclearBomb[playerid][bombactive] = true;
detonated[playerid] = false;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bomba Plantada , fuja para o mais lonje que puder e use /detonar.");
}
else return SendClientMessage(playerid, COLOR_RED, "Voce jб plantou uma super bomba!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Apenas lideres de Facзхes Terroristas podem usar essa bomba!");
}
}