12.12.2009, 13:06
check your brackets and try to intend your code, pls
here your code again, just intended, hope you see the mistake
if you use IE, you wont see it intended
here your code again, just intended, hope you see the mistake
if you use IE, you wont see it intended
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = TEAM_GROVE;
}
else
{
gTeam[playerid] = TEAM_BALLA;
}
}
return 1; <--- 70
{
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLA)
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
}