rendered paste body// the error message I am getting is
//C:\DOCUME~1\Shaun\Desktop\PAWNSC~1\SAMP01~1\LASTWO~1.PWN(128) : error 010: invalid function or declaration
//C:\DOCUME~1\Shaun\Desktop\PAWNSC~1\SAMP01~1\LASTWO~1.PWN(147) : error 010: invalid function or declaration
//----------------------------------------------------------------
public SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 || classid == 8 || classid == 9)
{
gTeam[playerid] = TEAM_COPS;
}
if (classid == 10 || classid == 11 || classid == 12 || classid == 13 || classid == 14 || classid == 15 || classid == 16 || classid == 17 || classid == 18 || classid == 19 || classid == 20 || classid == 21 || classid == 22 || classid == 23 || classid == 24 || classid == 25 || classid == 26|| classid == 27 || classid == 28)
{
gTeam[playerid] = TEAM_CIVS;
}
if (classid == 29 || classid == 30 || classid == 31)
gTeam[playerid] = TEAM_GROVE;
}
if (classid == 32 || classid == 33 || classid == 34)
gTeam[playerid] = TEAM_BALLAS;
}
//-------------------------------------------------------------------
public SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_COPS)
{
SetPlayerColor(playerid, TEAM_COPS_COLOR);
}
else if (gTeam[playerid] == TEAM_CIVS)
{
SetPlayerColor(playerid, TEAM_CIVS_COLOR);
}
else if (gTeam[playerid] == TEAM_GROVE)
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLAS)
SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
//------------------------------------------------------------------------------=
public OnPlayerRequestClass(playerid, classid)
{
printf("OnPlayerRequestClass(%d, %d)", playerid, classid);
SetPlayerPos(playerid, 2103.3679,-103.0956,2.2554);
SetPlayerFacingAngle(playerid, -80);
SetPlayerCameraPos(playerid, 2107.8237,-100.9340,1.9338);
SetPlayerCameraLookAt(playerid, 2103.3679,-103.0956,2.2554);
SetPlayerTeamFromClass(playerid, classid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9: //Cops
{
GameTextForPlayer(playerid, "~g~Cops", 1000, 3);
}
case 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28: //Civs
{
GameTextForPlayer(playerid, "~g~Civillians", 1000, 3);
}
case 29, 30, 31: //Grove
{
GameTextForPlayer(playerid, "~g~Grove St Family", 1000, 3);
}
case 32, 33, 34: //Ballas
{
GameTextForPlayer(playerid, "~g~Ballas Family", 1000, 3);
}
}
return 1;
}