error 017: undefined symbol "TagData"
#1

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;
}
Reply
#2

Show your enum and comment the line 1436 on your code please
Reply
#3

im not enum for this can you help me to create
Reply
#4

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
Reply
#5

can you help me to define TagData
Reply
#6

PHP код:
new TagData[MAX_PLAYERS][{enum name here}] 
or if you use a custom variable instead of MAX_PLAYERS then replace it with that
Reply
#7

Код:
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.
Reply
#8

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;
}
Reply
#9

Mark the 1437 line. I'm not a magician who can see which line is it
Reply
#10

INI_STRING("Author, TagData[index][eTaggerName], MAX_PLAYER_NAME);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)