03.03.2012, 08:08
Good evening.
I currently have this code, in my script
And I get these errors.
How is SetPlayerTeamFromClass never used? Also, for the other errors, those are for my random spawn positions, which aren't going so well either.
I've defined the human and zombie team as:
And I also have
How come I'm getting these errors?
I currently have this code, in my script
pawn Код:
SetPlayerTeamFromClass(playerid)
{
new classid = GetPlayerSkin(playerid);
if (classid == 120 || classid == 35 || classid == 112
{
SetPlayerColor(playerid,COLOR_CYAN);
SetPlayerTeam(playerid, TEAM_HUMANS);
}
else if (classid == 137 || classid == 135 || classid == 136
{
SetPlayerColor(playerid, COLOR_BROWN);
SetPlayerTeam(playerid, TEAM_ZOMBIES
}
}
Код:
C:\Users\Luke\Desktop\Script\Scripts\Lost Woods BETA.pwn(326) : warning 203: symbol is never used: "HumanSpawns" C:\Users\Luke\Desktop\Script\Scripts\Lost Woods BETA.pwn(326) : warning 203: symbol is never used: "SetPlayerTeamFromClass" C:\Users\Luke\Desktop\Script\Scripts\Lost Woods BETA.pwn(326) : warning 203: symbol is never used: "ZombieSpawns" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
pawn Код:
new Float:HumanSpawns[][] =
{
{1775.8531,-1303.9132,120.2586,272.4887},
{1774.5525,-1306.3617,120.2586,274.0972},
{1774.6008,-1301.7284,120.2586,270.8802},
{1771.9750,-1303.1437,120.2586,265.5953},
{1778.1970,-1303.5835,120.2586,271.5696}
};
new Float:ZombieSpawns[][] =
{
{1833.1782,-1292.7540,120.2656,10.1452},
{1827.6752,-1291.5758,120.2656,17.0386},
{1831.7612,-1308.2998,120.2656,182.9397},
{1827.4015,-1309.8148,120.2656,178.1143}
};
pawn Код:
#define TEAM_HUMANS 0
#define TEAM_ZOMBIES 1
pawn Код:
new gTeam[MAX_PLAYERS];