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;
}