08.06.2009, 15:58
hello again
i tried to add a class for grove team
here's my code
And this is my error
i don't know what i do wrong help me xD
i tried to add a class for grove team
here's my code
Код:
#include <a_samp> #define TEAM_GROVE 1 #define TEAM_BALLA 2 #define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green (in RGBA format) #define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple new gTeam[MAX_PLAYERS]; SetPlayerTeamFromClass(playerid) { new classid = GetPlayerSkin(playerid); if (classid == 0) { gTeam[playerid] = TEAM_GROVE; if(classid == 105 || classid == 105 gTeam[playerid] = TEAM_GROVE; } else { gTeam[playerid] = TEAM_BALLA; } return 1; } SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid, TEAM_GROVE_COLOR); } else if (gTeam[playerid] == TEAM_BALLA) { SetPlayerColor(playerid, TEAM_BALLA_COLOR); } return 1; }
Код:
C:\Gta sa server\gamemodes\freeroam.pwn(17) : error 001: expected token: ")", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.