Help GangZone
#1

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"
Reply
#2

pawn Код:
enum eZone
{
    Float:zMinX,
    Float:zMinY,
    Float:zMaxX,
    Float:zMaxY,
    zTeam,
}
Reply
#3

pawn Код:
enum eZone
{
    Float:zMinX,
    Float:zMinY,
    Float:zMaxX,
    Float:zMaxY,
    zTeam,
}
Show us the code from 13 to 121
Reply
#4

both are kinda wrong,last comma.
Reply
#5

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
both are kinda wrong,last comma.
Last comma wont make it return any error.. Lol.
Reply
#6

oh, i thought it would makes difference. just like declaring a variable.
Reply
#7

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.
Reply
#8

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

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"

(
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: