29.01.2011, 23:15
Код:
#include <a_samp> #if defined FILTERSCRIPT #define TEAM_TERORISTS 1 #define TEAM_COUNTERTERORISTS 2 #define TEAM_COUNTERTERORISTS_COLOR 0xFF0000FF #define TEAM_TERORISTS_COLOR 0xFFFF0000 #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } SetPlayerTeamFromClass(playerid, classid) { if (classid == 0) { gTeam[playerid] = TEAM_TERORISTS; } else { gTeam[playerid] = TEAM_COUNTERTERORISTS; } } SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_TERRORISTS) { SetPlayerColor(playerid, TEAM_TERORISTS_COLOR); } else if (gTeam[playerid] == TEAM_COUNTERTERRORISTS) { SetPlayerColor(playerid, TEAM_COUNTERTERORISTS_COLOR); } }
Код:
if (classid == 0) { gTeam[playerid] = TEAM_TERRORISTS; } if (classid == 1) { gTeam[playerid] = TEAM_COUNTERTERORISTS; }
When i compile it says
(245) : warning 203: symbol is never used: "SetPlayerTeamFromClass"
(245) : warning 203: symbol is never used: "SetPlayerToTeamColor"
Please Help.