#1

ok i keep getting 5 errors on my gteam stuff and i looked on wiki to see what i have done wrong but I have done everyhting correctly

pawn Код:
new gTeam[MAX_PLAYERS];
I did that
then this is what I am getting errors on:
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if (classid == 0)
    {
        gTeam[playerid] = TEAM_BLUE;
    }
    else
    {
        gTeam[playerid] = TEAM_RED;
    }
}

It says it doesnt know what gTeam is
Reply
#2

try this https://sampwiki.blast.hk/wiki/Main_Page
Reply
#3

Yes that is what im saying. i did it all by my self. it had an error. then i deleted all of it and did what the wiki told me. it still diesnt work..any ideas?
Reply
#4

what are the errors?


and did you

#define TEAM_BLUE 0
#define TEAM_RED 1


at the top of your script?
Reply
#5

NVM i found out what i did, i didnt put these after the #else that was justa stupid mistake thanks though for help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)