[Ajuda] Erro
#1

No comando /plantarsuperbomba do meu gm ta dando esse erro oq fasso
Erro :
PHP код:
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 017undefined symbol "EsperarBomba"
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : warning 215expression has no effect
C
:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 001expected token";"but found "]"
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 029invalid expressionassumed zero
C
:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Comando :
PHP код:
if(strcmp(cmd"/plantarsuperbomba"true) == 0)
    {
        if(
PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pLeader] == 7)
        {
            if(
EsperarBomba[playerid] >= 1) return SendClientMessage(playeridCOLOR_RED"Voce jб usou a bomba Recentemente, Espera alum tempo para usa-la novamente!");
            if(!
NuclearBomb[playerid][bombactive])
            {
                new 
Float:bxFloat:byFloat:bzFloat:ba;
                
GetPlayerPos(playeridbxbybz);
                
GetPlayerFacingAngle(playeridba);
                
bx += (floatsin(-badegrees));
                
by += (floatcos(-badegrees));
                
NuclearBomb[playerid][Nuke] = CreateObject(3786bxbybz00ba);
                
NuclearBomb[playerid][x] = bx;
                
NuclearBomb[playerid][y] = by;
                
NuclearBomb[playerid][z] = bz;
                
NuclearBomb[playerid][area] = 0;
                new 
LuxZone[MAX_ZONE_NAME];
                
GetPlayer2DZone(iLuxZoneMAX_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(playeridCOLOR_LIGHTBLUE"Bomba Plantada , fuja para o mais lonje que puder e use /detonar.");
            }
            else return 
SendClientMessage(playeridCOLOR_RED"Voce jб plantou uma super bomba!");
            return 
1;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"Apenas lideres de Facзхes Terroristas podem usar essa bomba!");
        }
    } 
Reply
#2

pawn Код:
//no topo
new EsperarBomba[MAX_PLAYERS];
Reply
#3

Agora ta dando isso
PHP код:
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34243) : error 001expected token")"but found "["
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34243) : error 029invalid expressionassumed zero
C
:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34243) : warning 215expression has no effect
C
:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34243) : error 001expected token";"but found "]"
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34243) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


4 Errors

Oq fasso ?
Reply
#4

Quote:
Originally Posted by ' Bigode
Посмотреть сообщение
No comando /plantarsuperbomba do meu gm ta dando esse erro oq fasso
Erro :
PHP код:
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 017undefined symbol "EsperarBomba"
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : warning 215expression has no effect
C
:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 001expected token";"but found "]"
C:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : error 029invalid expressionassumed zero
C
:\Users\Felipe\Desktop\Server 0.3d\gamemodes\BVOv7.pwn(34239) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Comando :
PHP код:
if(strcmp(cmd"/plantarsuperbomba"true) == 0)
    {
        if(
PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pLeader] == 7)
        {
            if(
EsperarBomba[playerid] >= 1) return SendClientMessage(playeridCOLOR_RED"Voce jб usou a bomba Recentemente, Espera alum tempo para usa-la novamente!");
            if(!
NuclearBomb[playerid][bombactive])
            {
                new 
Float:bxFloat:byFloat:bzFloat:ba;
                
GetPlayerPos(playeridbxbybz);
                
GetPlayerFacingAngle(playeridba);
                
bx += (floatsin(-badegrees));
                
by += (floatcos(-badegrees));
                
NuclearBomb[playerid][Nuke] = CreateObject(3786bxbybz00ba);
                
NuclearBomb[playerid][x] = bx;
                
NuclearBomb[playerid][y] = by;
                
NuclearBomb[playerid][z] = bz;
                
NuclearBomb[playerid][area] = 0;
                new 
LuxZone[MAX_ZONE_NAME];
                
GetPlayer2DZone(iLuxZoneMAX_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(playeridCOLOR_LIGHTBLUE"Bomba Plantada , fuja para o mais lonje que puder e use /detonar.");
            }
            else return 
SendClientMessage(playeridCOLOR_RED"Voce jб plantou uma super bomba!");
            return 
1;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"Apenas lideres de Facзхes Terroristas podem usar essa bomba!");
        }
    } 
Topo do GM:
pawn Код:
new EsperarBomba[MAX_PLAYERS];
Reply
#5

isso eu jah fis olha o otro erro
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)