SA-MP Forums Archive
[HELP] enum - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] enum (/showthread.php?tid=578594)



[HELP] enum - M0HAMMAD - 20.06.2015

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")



Re: [HELP] enum - M0HAMMAD - 20.06.2015

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


Re: [HELP] enum - UltraScripter - 20.06.2015

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



Re: [HELP] enum - Dusan01 - 20.06.2015

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


Re: [HELP] enum - M0HAMMAD - 21.06.2015

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


Re: [HELP] enum - M0HAMMAD - 21.06.2015

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


Re: [HELP] enum - Dusan01 - 21.06.2015

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 }


AW: [HELP] enum - Mencent - 21.06.2015

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


Re: [HELP] enum - M0HAMMAD - 21.06.2015

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 !


Re: AW: [HELP] enum - M0HAMMAD - 21.06.2015

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 !