[HELP] enum
#1

pawn Код:
enum pInfo
{
    One[512],
    Two[512],
    Three[512],
    Four[512],
    Five,
    Six
}
new PlayerInfo[MAX_CLAN][pInfo];
Код:
.pwn(478) : error 001: expected token: "-identifier-", but found "-integer value-"
.pwn(8072) : error 017: undefined symbol "Five"
.pwn(8073) : error 017: undefined symbol "Six"
.pwn(8076) : error 017: undefined symbol "Three"
.pwn(8077) : error 033: array must be indexed (variable "Four")
.pwn(11887) : error 017: undefined symbol "Six"
.pwn(11944) : error 017: undefined symbol "Six"
.pwn(11945) : error 017: undefined symbol "Six"
.pwn(11960) : error 017: undefined symbol "Six"
.pwn(11961) : error 017: undefined symbol "Six"
.pwn(20947) : error 017: undefined symbol "Three"
.pwn(20968) : error 017: undefined symbol "Three"
.pwn(20988) : error 017: undefined symbol "Three"
.pwn(21008) : error 017: undefined symbol "Three"
.pwn(21030) : error 017: undefined symbol "Three"
.pwn(21051) : warning 213: tag mismatch
.pwn(21051) : error 032: array index out of bounds (variable "PlayerInfo")
.pwn(21105) : error 033: array must be indexed (variable "Four")
.pwn(21119) : error 033: array must be indexed (variable "Four")
.pwn(21133) : error 033: array must be indexed (variable "Four")
.pwn(21147) : error 033: array must be indexed (variable "Four")
.pwn(21161) : error 033: array must be indexed (variable "Four")
.pwn(21175) : error 033: array must be indexed (variable "Four")
.pwn(21189) : error 033: array must be indexed (variable "Four")
.pwn(21203) : error 033: array must be indexed (variable "Four")
.pwn(21217) : error 033: array must be indexed (variable "Four")
Reply
#2

it's like complier not read the PlayerInfo with enum !
Reply
#3

did you define it after
pawn Код:
#if defined FILTERSCRIPT
Reply
#4

Make sure your
Код:
enum pInfo
is at top of your script before u use it somewhere...
Reply
#5

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
did you define it after
pawn Код:
#if defined FILTERSCRIPT
this enum not using it in filterscript ! Gamemode
Reply
#6

Quote:
Originally Posted by Dusan01
Посмотреть сообщение
Make sure your
Код:
enum pInfo
is at top of your script before u use it somewhere...
is not use it no where. i search with CTRL + F in my Gamemode
Reply
#7

Okay, try it like this:
Код:
 enum pInfo
{
	One[512],
	Two[512],
	Three[512],
	Four[512],
	Five,
	Six
};
new PlayerInfo[MAX_CLAN][pInfo];
its look like u were missing ; on }
Reply
#8

Hello!

Try this:
PHP код:
enum pInfo
{
    
One[512],
    
Two[512],
    
Three[512],
    
Four[512],
    
Five[512],
    
Six[512]
}; 
Do you want that "Five" and "Six" are being arrays?

- Mencent
Reply
#9

Quote:
Originally Posted by Dusan01
Посмотреть сообщение
Okay, try it like this:
Код:
 enum pInfo
{
	One[512],
	Two[512],
	Three[512],
	Four[512],
	Five,
	Six
};
new PlayerInfo[MAX_CLAN][pInfo];
its look like u were missing ; on }
not work !
Reply
#10

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Try this:
PHP код:
enum pInfo
{
    
One[512],
    
Two[512],
    
Three[512],
    
Four[512],
    
Five[512],
    
Six[512]
}; 
Do you want that "Five" and "Six" are being arrays?

- Mencent
not work !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)