Help GangZone -
Taykiro - 07.09.2012
pawn Код:
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam,
};
GangZone.pwn(13) : error 001: expected token: "(", but found "enum"
GangZone.pwn(13) : error 001: expected token: ";", but found "-identifier-"
GangZone.pwn(20) : error 010: invalid function or declaration
GangZone.pwn(22) : error 017: undefined symbol "eZone"
GangZone.pwn(50) : error 017: undefined symbol "zMinX"
GangZone.pwn(71) : error 017: undefined symbol "zMinX"
GangZone.pwn(8

: error 017: undefined symbol "zTeam"
GangZone.pwn(106) : error 017: undefined symbol "zTeam"
GangZone.pwn(107) : error 017: undefined symbol "zTeam"
GangZone.pwn(121) : error 017: undefined symbol "zTeam"
Re : Help GangZone -
ricardo178 - 07.09.2012
pawn Код:
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam,
}
Re: Help GangZone -
Gangster-rocks - 07.09.2012
pawn Код:
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam,
}
Show us the code from 13 to 121
Re: Help GangZone -
leonardo1434 - 07.09.2012
both are kinda wrong,last comma.
Re : Re: Help GangZone -
ricardo178 - 07.09.2012
Quote:
Originally Posted by leonardo1434
both are kinda wrong,last comma.
|
Last comma wont make it return any error.. Lol.
Re: Help GangZone -
leonardo1434 - 07.09.2012
oh, i thought it would makes difference. just like declaring a variable.
Re : Re: Help GangZone -
ricardo178 - 07.09.2012
Quote:
Originally Posted by leonardo1434
oh, i thought it would makes difference. just like declaring a variable.
|
Nope. I actualy use comma in last variable and it always worked normaly. In the code he gave, the only wrong thing is the ";".. Maybe there's some other mistake in the rest of the code.
Re: Help GangZone -
Kirollos - 07.09.2012
i write enums like that
pawn Код:
enum lol
{
varone,
vartwo,
Float:floatone,
Float:floattwo
};
so it would be like that
pawn Код:
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam
};
EDIT: it will work with both codes (the one you gave too)
but show me the code that was before enum
Re: Re : Help GangZone -
Taykiro - 09.09.2012
Quote:
Originally Posted by ricardo178
pawn Код:
enum eZone { Float:zMinX, Float:zMinY, Float:zMaxX, Float:zMaxY, zTeam, }
|
error 001: expected token: "(", but found "enum"
error 001: expected token: ";", but found "-identifier-"
error 017: undefined symbol "eZone"
error 017: undefined symbol "zMinX"
error 017: undefined symbol "zMinX"
error 017: undefined symbol "zTeam"
error 017: undefined symbol "zTeam"
error 017: undefined symbol "zTeam"
error 017: undefined symbol "zTeam"

(
Re: Help GangZone -
Kirollos - 09.09.2012
Quote:
Originally Posted by kirollos
i write enums like that
show me the code that was before enum
|
hmm? what i said in my topic?