enums?
#1

Hey, I made this enum for Team but i get an error..

pawn Код:
enum Teams
{
    Team:1,
    Team:2,
    Team:3,
    Team:4,
    Team:5,
}
Код:
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(23) : error 001: expected token: "-identifier-", but found "-integer value-"
Reply
#2

i think the problem is at the character ":" try removing it so you will have "Team1/Team2/....."
Reply
#3

pawn Код:
enum Teams
{
    Team1,
    Team2,
    Team3,
    Team4,
    Team5,
}

new NAME.THIS.TO.SOMETHING.YOU.WANT[Teams];
example: new teams[Teams];
Reply
#4

Sorry for this double post
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)