error 017: undefined symbol "TagData" -
firstlast488 - 06.11.2016
How to Define this and fix error?
Код:
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1436) : error 017: undefined symbol "TagData"
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1436) : error 029: invalid expression, assumed zero
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1436) : error 029: invalid expression, assumed zero
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1436) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
forward ParseServerTag(index, name[], value[]);
public ParseServerTag(index, name[], value[])
{
HighestTagID = index;
INI_String("Author", TagData[index][eTaggerName], MAX_PLAYER_NAME);
INI_String("Text", TagData[index][eTagText], MAX_TEXT_LENGHT);
INI_String("Font", TagData[index][eTagFont], 16);
INI_Int("Size", TagData[index][eTagSize]);
INI_Int("Color", TagData[index][eTagTextColor]);
INI_Int("Bold", TagData[index][eTagBold]);
INI_Float("X_Pos", TagData[index][eTagPos][0]);
INI_Float("Y_Pos", TagData[index][eTagPos][1]);
INI_Float("Z_Pos", TagData[index][eTagPos][2]);
INI_Float("RX_Pos", TagData[index][eTagPos][3]);
INI_Float("RY_Pos", TagData[index][eTagPos][4]);
INI_Float("RZ_Pos", TagData[index][eTagPos][5]);
SetTimerEx("BuildTag", 500, false, "d", index);
return 1;
}
Re: error 017: undefined symbol "TagData" -
StrikerZ - 06.11.2016
Show your enum and comment the line 1436 on your code please
Re: error 017: undefined symbol "TagData" -
firstlast488 - 06.11.2016
im not enum for this can you help me to create
Re: error 017: undefined symbol "TagData" -
StrikerZ - 06.11.2016
You don't have an enum? It looks like this for ex-
PHP код:
PlayerData
{
Name,
Pass,
//etc
};
Find your TagData enum in your script and post it and mark the 1436 line on your code above
Re: error 017: undefined symbol "TagData" -
firstlast488 - 06.11.2016
can you help me to define TagData
Re: error 017: undefined symbol "TagData" -
StrikerZ - 06.11.2016
PHP код:
new TagData[MAX_PLAYERS][{enum name here}]
or if you use a custom variable instead of MAX_PLAYERS then replace it with that
Re: error 017: undefined symbol "TagData" -
firstlast488 - 06.11.2016
Код:
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(596) : error 029: invalid expression, assumed zero
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1440) : error 017: undefined symbol "eTaggerName"
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1440) : warning 215: expression has no effect
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1440) : error 001: expected token: ";", but found "]"
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1440) : error 029: invalid expression, assumed zero
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1440) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: error 017: undefined symbol "TagData" -
firstlast488 - 06.11.2016
help me this error
Код:
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1437) : error 029: invalid expression, assumed zero
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1437) : warning 215: expression has no effect
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1437) : error 001: expected token: ";", but found "]"
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1437) : error 029: invalid expression, assumed zero
C:\Users\pc9\Desktop\RP\gamemodes\rp.pwn(1437) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
forward ParseServerTag(index, name[], value[]);
public ParseServerTag(index, name[], value[])
{
HighestTagID = index;
INI_String("Author", TagData[index][eTaggerName], MAX_PLAYER_NAME);
INI_String("Text", TagData[index][eTagText], MAX_TEXT_LENGHT);
INI_String("Font", TagData[index][eTagFont], 16);
INI_Int("Size", TagData[index][eTagSize]);
INI_Int("Color", TagData[index][eTagTextColor]);
INI_Int("Bold", TagData[index][eTagBold]);
INI_Float("X_Pos", TagData[index][eTagPos][0]);
INI_Float("Y_Pos", TagData[index][eTagPos][1]);
INI_Float("Z_Pos", TagData[index][eTagPos][2]);
INI_Float("RX_Pos", TagData[index][eTagPos][3]);
INI_Float("RY_Pos", TagData[index][eTagPos][4]);
INI_Float("RZ_Pos", TagData[index][eTagPos][5]);
SetTimerEx("BuildTag", 500, false, "d", index);
return 1;
}
Re: error 017: undefined symbol "TagData" -
StrikerZ - 06.11.2016
Mark the 1437 line. I'm not a magician who can see which line is it
Re: error 017: undefined symbol "TagData" -
firstlast488 - 06.11.2016
INI_STRING("Author, TagData[index][eTaggerName], MAX_PLAYER_NAME);