Help with /shop
#9

Quote:
Originally Posted by ServerScripter
View Post
Note : i have not defined TEAM_ZOMBIE and gteam ...
Note for yourself:
If you look close at all 4 of those errors, you'll will see that all of those errors are showing one line: 158.
So why don't you just define the gTeam Teams?

Here's an example:
pawn Code:
//Somewhere on top of your script
#define TEAM_ZOMBIE 1
#define TEAM2 2
#define TEAM3 3

static gTeam[MAX_PLAYERS];


//Under OnPlayerRequestClass
SetPlayerClass(playerid, classid);


//This is a custom callback, put it somewhere in the middle of the script
SetPlayerClass(playerid, classid)
{
    if(classid == 0 || classid == 1 || classid == 2)
    {
        gTeam[playerid] = TEAM_ZOMBIE;
    }
    else if(classid == 3 || classid == 4 || classid == 5)
    {
        gTeam[playerid] = TEAM2;
    }
    else if(classid == 6 || classid == 7 || classid == 8)
    {
        gTeam[playerid] = TEAM3;
    }
}
EDIT: Sorry for double post, I forgot that I posted earlier on this topic..
Reply


Messages In This Thread
Help with /shop - by ServerScripter - 21.08.2011, 14:54
Re: Help with /shop - by System64 - 21.08.2011, 14:57
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:12
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 15:15
Re: Help with /shop - by Improvement™ - 21.08.2011, 15:16
Re: Help with /shop - by Kush - 21.08.2011, 15:18
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:28
Re: Help with /shop - by Improvement™ - 21.08.2011, 15:28
Re: Help with /shop - by Improvement™ - 21.08.2011, 15:31
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:34
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 15:38
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:43
Re: Help with /shop - by System64 - 21.08.2011, 15:45
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 15:48
Re: Help with /shop - by ServerScripter - 21.08.2011, 16:05
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 16:07
Re: Help with /shop - by ServerScripter - 21.08.2011, 16:17
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 16:22
Re: Help with /shop - by ServerScripter - 21.08.2011, 16:26
Re: Help with /shop - by Improvement™ - 21.08.2011, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)