[Tutorial] [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base
#34

Mine got stuck in a pwn(459) : error 017: undefined symbol "gTeam" so can someone help out? I wanna make 6 teams so there's something missing:

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#define DropMoney 30000
#include <YSI\y_ini> //If you have installed YSI, then you shouldn't have any problem
native WP_Hash(buffer[],len,const str[]); // Whirlpool native, add it at the top of your script under includes
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
#define PATH "/Players/%s.ini" //Will define user's account path. In this case, we will save it in Scriptfiles/Users. So create a file inside of your Scriptfiles folder called Users
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
#if defined FILTERSCRIPT
#define TEAM_SOKABOYZ 0
#define TEAM_LOKOS 1
#define TEAM_PIMPS 2
#define TEAM_MICES 3
#define TEAM_POTATOHEADZ 4
#define TEAM_AVENGERS 5
#define COLOR_GREEN 0x008000FF
#define COLOR_BLUE 0x0000FFFF

SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = TEAM_SOKABOYZ;
return 1;
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_LOKOS;
}
else if(classid == 2)
{
gTeam[playerid] = TEAM_PIMPS;
}
else if(classid == 3)
{
gTeam[playerid] = TEAM_MICES;
}
else if(classid == 4)
{
gTeam[playerid] = TEAM_POTATOHEADZ;
}
else if(classid == 5)
{
gTeam[playerid] = TEAM_AVENGERS;
return 1;
}

public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, DropMoney);
{
if(gTeam[playerid] == TEAM_SOKABOYZ)
{
SetPlayerInterior(playerid, 0-13);
SetPlayerPos(playerid, -1818.3712,-1612.8964,23.0156);
return 1;
}
else if(gTeam[playerid] == TEAM_LOKOS)
{
SetPlayerInterior(playerid, 43-52);
SetPlayerPos(playerid, -1527.3290,-289.5187,6.0000);
}
else if(gTeam[playerid] == TEAM_PIMPS)
{
SetPlayerInterior(playerid, 87-101);
SetPlayerPos(playerid, -2654.8364,1373.4486,7.1003);
}
else if(gTeam[playerid] == TEAM_MICES)
{
SetPlayerInterior(playerid, 137-150);
SetPlayerPos(playerid, 297.6018,1839.6121,7.8281);
}
else if(gTeam[playerid] == TEAM_POTATOHEADZ)
{
SetPlayerInterior(playerid, 188-20;
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
}
else if(gTeam[playerid] == TEAM_AVENGERS)
{
SetPlayerInterior(playerid, 265-277);
SetPlayerPos(playerid, 1962.3696,-2188.4583,13.5469);
return 1;
}
return 1;
}
Reply


Messages In This Thread
[TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by retart441 - 10.11.2009, 23:44
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by DiddyBop - 10.11.2009, 23:50
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 10.11.2009, 23:59
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Daren_Jacobson - 11.11.2009, 01:11
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Avsecret - 11.11.2009, 01:25
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 11.11.2009, 02:44
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Daren_Jacobson - 11.11.2009, 03:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Sergei - 11.11.2009, 04:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by retart441 - 11.11.2009, 04:42
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by LarzI - 11.11.2009, 08:22
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 11.11.2009, 21:52
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Ritchie999 - 16.11.2009, 01:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Retardedwolf - 16.11.2009, 03:20
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Ritchie999 - 16.11.2009, 11:17
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by LarzI - 16.11.2009, 14:16
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by [LCG]TANKER - 16.11.2009, 20:10
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 16.11.2009, 20:28
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by Ritchie999 - 16.11.2009, 20:35
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Peter_Corneile - 16.11.2009, 20:37
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 16.11.2009, 23:31
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Retardedwolf - 17.11.2009, 08:20
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by Ritchie999 - 17.11.2009, 18:54
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by retart441 - 17.11.2009, 19:18
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Alex_Cop - 19.12.2009, 10:13
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by CJ101 - 19.12.2009, 10:16
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted - by philmckrakin - 22.12.2009, 00:01
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by roar - 22.12.2009, 00:25
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by CSMajor - 21.07.2010, 21:28
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by whosHate - 02.08.2012, 22:54
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Astrais - 04.01.2013, 18:53
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by AA9 - 11.06.2013, 15:52
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Inverse - 15.06.2013, 15:07
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by iokito7 - 04.07.2013, 09:59
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by ciberblue - 14.12.2013, 02:16
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by boomerboom - 14.12.2013, 07:27
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by djones - 12.01.2014, 02:56
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Sojo12 - 12.01.2014, 07:01
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by Calin2551 - 01.03.2014, 14:29
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by KurtBart - 17.05.2014, 13:57
Re: [TUT] Teams - Setting up teams - Team restricted vehicles - Team Restricted base - by TheRaGeLord - 08.02.2015, 10:43

Forum Jump:


Users browsing this thread: 10 Guest(s)