[Ajuda] ERRO already defined CreateDynamicObject
#1

Estou com esse erro

pawn Код:
error 021: symbol already defined: "CreateDynamicObject"
Em varias linhas... de objetos criado.. alguem pode me ajudar ?

e esse erro tambem

pawn Код:
new GangNames[4][] = // nome das gangs para aparecer 'A gang X doiminou mais um territуrio'
{
    "RODO",
    "ACARН",
    "VINTEM"
    "BARAO"
};


pawn Код:
error 010: invalid function or declaration
pawn Код:
error 001: expected token: "}", but found "-string-"
Reply
#2

cara n entendi puto que vc falou

mas vi um erro aqui


pawn Код:
new GangNames[4][] = // nome das gangs para aparecer 'A gang X doiminou mais um territуrio'
{
    "RODO",
    "ACARН",
    "VINTEM",
    "BARAO"
};
Reply
#3

Realmente nгo expliquei direito
Mas ta dando esses erros assim у,

pawn Код:
C:\Users\Cordeiro\Desktop\LiC.pwn(131) : warning 201: redefinition of constant/macro (symbol "CV")
C:\Users\Cordeiro\Desktop\LiC.pwn(132) : warning 201: redefinition of constant/macro (symbol "ADA")
C:\Users\Cordeiro\Desktop\LiC.pwn(133) : warning 201: redefinition of constant/macro (symbol "TCP")
C:\Users\Cordeiro\Desktop\LiC.pwn(245) : error 020: invalid symbol name ""
C:\Users\Cordeiro\Desktop\LiC.pwn(246) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(467) : error 055: start of function body without function header
C:\Users\Cordeiro\Desktop\LiC.pwn(470) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(475) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(480) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(484) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(514) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(534) : error 021: symbol already defined: "Create3DTextLabel"
C:\Users\Cordeiro\Desktop\LiC.pwn(549) : error 021: symbol already defined: "CreatePickup"
C:\Users\Cordeiro\Desktop\LiC.pwn(559) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(933) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(1237) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(1640) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(2043) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(2051) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(2065) : error 021: symbol already defined: "Create3DTextLabel"
C:\Users\Cordeiro\Desktop\LiC.pwn(2120) : error 021: symbol already defined: "Create3DTextLabel"
C:\Users\Cordeiro\Desktop\LiC.pwn(2128) : error 021: symbol already defined: "CreatePickup"
C:\Users\Cordeiro\Desktop\LiC.pwn(2137) : error 021: symbol already defined: "Create3DTextLabel"
C:\Users\Cordeiro\Desktop\LiC.pwn(2147) : error 021: symbol already defined: "CreatePickup"
C:\Users\Cordeiro\Desktop\LiC.pwn(2161) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(2186) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(2221) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(2255) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\Cordeiro\Desktop\LiC.pwn(2259) : error 021: symbol already defined: "SetVehicleNumberPlate"
Que nгo dava antes de eu por gangzone no gamemode..
Reply
#4

tem a ver com a streamer, veja se n ta defenindo ela 2 x
Reply
#5

Atualiza a Include.
Reply
#6

Ja resolvi agora ta dando esse erro aki

pawn Код:
C:\Users\Cordeiro\Desktop\LiC.pwn(245) : error 020: invalid symbol name ""
C:\Users\Cordeiro\Desktop\LiC.pwn(246) : error 010: invalid function or declaration
C:\Users\Cordeiro\Desktop\LiC.pwn(2480) : error 017: undefined symbol "GangRODO"
C:\Users\Cordeiro\Desktop\LiC.pwn(2480) : warning 215: expression has no effect
C:\Users\Cordeiro\Desktop\LiC.pwn(2480) : error 001: expected token: ";", but found "]"
C:\Users\Cordeiro\Desktop\LiC.pwn(2480) : error 029: invalid expression, assumed zero
C:\Users\Cordeiro\Desktop\LiC.pwn(2480) : fatal error 107: too many error messages on one line


Linha 2480:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
    {
        case 0:
        {
            GameTextForPlayer(playerid, GangRODO[0], 2000, 3);  // nome da gang
            SetPlayerTeam(playerid, 0);
        }
        case 1:
        {
            GameTextForPlayer(playerid, GangVINTEM[1], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 1); // seta o time para nгo ocorrer teamkill
        }
        case 2:
        {
            GameTextForPlayer(playerid, GangACARI[2], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 2); // seta o time para nгo ocorrer teamkill
        }
        case 3:
        {
            GameTextForPlayer(playerid, GangBARAO[3], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 2); // seta o time para nгo ocorrer teamkill
        }
     }
     return 1;
}

LINHA 245:

pawn Код:
new pgzcolor[MAX_GANGS+1] =
    0xFF00000, 0xFFFF00AA, 0x0000FFAA, 0xF97804FF
};
Reply
#7

Vocк tem que usar chaves quando for criar variбveis arrays diretamente.

Por exemplo:

pawn Код:
pgzcolor [ /*Pode deixar vazio esses colchetes, o compilador seta ;)*/ ] =
{
    {0xFF000000},
    {0xFFFF00AA},
    {0x0000FFAA},
    {0xF97804FF} //Ultima = Sem chaves
};
Reply
#8

isso ja resolvi, agora ta assim

pawn Код:
C:\Users\Cordeiro\Downloads\Arquivos Hugo\samp03x_svr_R1-2_win32\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
C:\Users\Cordeiro\Desktop\LiC.pwn(131) : warning 201: redefinition of constant/macro (symbol "CV")
C:\Users\Cordeiro\Desktop\LiC.pwn(132) : warning 201: redefinition of constant/macro (symbol "ADA")
C:\Users\Cordeiro\Desktop\LiC.pwn(133) : warning 201: redefinition of constant/macro (symbol "TCP")
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : error 017: undefined symbol "GangRODO"
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : warning 215: expression has no effect
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : error 001: expected token: ";", but found "]"
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : error 029: invalid expression, assumed zero
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

NESSA PUBLIC

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
    {
        case 0:
        {
            GameTextForPlayer(playerid, GangRODO[0], 2000, 3);  // nome da gang
            SetPlayerTeam(playerid, 0);
        }
        case 1:
        {
            GameTextForPlayer(playerid, GangVINTEM[1], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 1); // seta o time para nгo ocorrer teamkill
        }
        case 2:
        {
            GameTextForPlayer(playerid, GangACARI[2], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 2); // seta o time para nгo ocorrer teamkill
        }
        case 3:
        {
            GameTextForPlayer(playerid, GangBARAO[3], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 2); // seta o time para nгo ocorrer teamkill
        }
     }
     return 1;
}
Reply
#9

Para voce arrumar o erro da CreateDynamicObject devera colocar isto no topo do teu gm ou fs :

Quote:

#include <streamer>

Lembrando que voce devera ter esta include
Reply
#10

Isso ja resolvi muito obrigado agora o problema й esse

QUEM ME AJUDAR RESOLVER NESSE AKI DO +REP

pawn Код:
C:\Users\Cordeiro\Downloads\Arquivos Hugo\samp03x_svr_R1-2_win32\pawno\include\streamer.inc(155) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
C:\Users\Cordeiro\Desktop\LiC.pwn(131) : warning 201: redefinition of constant/macro (symbol "CV")
C:\Users\Cordeiro\Desktop\LiC.pwn(132) : warning 201: redefinition of constant/macro (symbol "ADA")
C:\Users\Cordeiro\Desktop\LiC.pwn(133) : warning 201: redefinition of constant/macro (symbol "TCP")
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : error 017: undefined symbol "GangRODO"
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : warning 215: expression has no effect
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : error 001: expected token: ";", but found "]"
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : error 029: invalid expression, assumed zero
C:\Users\Cordeiro\Desktop\LiC.pwn(2481) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Nessa public
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
    {
        case 0:
        {
            GameTextForPlayer(playerid, GangRODO[0], 2000, 3);  // nome da gang
            SetPlayerTeam(playerid, 0);
        }
        case 1:
        {
            GameTextForPlayer(playerid, GangVINTEM[1], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 1); // seta o time para nгo ocorrer teamkill
        }
        case 2:
        {
            GameTextForPlayer(playerid, GangACARI[2], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 2); // seta o time para nгo ocorrer teamkill
        }
        case 3:
        {
            GameTextForPlayer(playerid, GangBARAO[3], 2000, 3); // nome da gang
            SetPlayerTeam(playerid, 2); // seta o time para nгo ocorrer teamkill
        }
     }
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)