new gTeam[MAX_PLAYERS];#define TEAM_COP 0 // Rendõr#define TEAM_ARMY 1 // Katonapublic OnGameModeInit(){ AddPlayerClass(285,1579.5028,-1635.4249,17.9324,346.9123,3,1,0,0,0,0); // Rendõr AddPlayerClass(121,2769.0142,-2418.8230,13.6396,96.7459,8,1,0,0,0,0); // Katona return 1;}public OnPlayerRequestClass(playerid, classid){ switch(classid) { case 0: { gTeam[playerid] = TEAM_COP; SendClientMessage(playerid, 0xFFFF00AA, \"Ez a Rendõr csapat!\"); } case 1: { gTeam[playerid] = TEAM_ARMY; SendClientMessage(playerid, 0xFFFF00AA, \"Ez a Katona csapat!\"); } } return 1;}public OnPlayerSpawn(playerid){ if(gTeam[playerid] == TEAM_COP) { SetPlayerColor(playerid,COLOR_BLUE); GivePlayerWeapon(playerid,26,1000); GivePlayerWeapon(playerid,32,1000); } else if(gTeam[playerid] == TEAM_ARMY) { SetPlayerColor(playerid,COLOR_BROWN); GivePlayerWeapon(playerid,26,1000); GivePlayerWeapon(playerid,32,1000); } return 1;}
C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(1) : error 017: undefined symbol \"MAX_PLAYERS\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(1) : error 009: invalid array size (negative, zero or out of bounds)C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(6) : warning 235: public function lacks forward declaration (symbol \"OnGameModeInit\")C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn( : error 017: undefined symbol \"AddPlayerClass\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(9) : error 017: undefined symbol \"AddPlayerClass\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(12) : warning 235: public function lacks forward declaration (symbol \"OnPlayerRequestClass\")C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(19) : error 017: undefined symbol \"SendClientMessage\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(24) : error 017: undefined symbol \"SendClientMessage\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(29) : warning 235: public function lacks forward declaration (symbol \"OnPlayerSpawn\")C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(33) : error 017: undefined symbol \"SetPlayerColor\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(34) : error 017: undefined symbol \"GivePlayerWeapon\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(35) : error 017: undefined symbol \"GivePlayerWeapon\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(39) : error 017: undefined symbol \"SetPlayerColor\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(40) : error 017: undefined symbol \"GivePlayerWeapon\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\gteam.pwn(41) : error 017: undefined symbol \"GivePlayerWeapon\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 12 Errors.
#include <a_samp>new gTeam[MAX_PLAYERS];#define TEAM_COP 0 // Rendõr#define TEAM_ARMY 1 // Katonapublic OnGameModeInit(){ AddPlayerClass(285,1579.5028,-1635.4249,17.9324,346.9123,3,1,0,0,0,0); // Rendõr AddPlayerClass(121,2769.0142,-2418.8230,13.6396,96.7459,8,1,0,0,0,0); // Katona return 1;}public OnPlayerRequestClass(playerid, classid){ switch(classid) { case 0: { gTeam[playerid] = TEAM_COP; SendClientMessage(playerid, 0xFFFF00AA, \"Ez a Rendõr csapat!\"); } case 1: { gTeam[playerid] = TEAM_ARMY; SendClientMessage(playerid, 0xFFFF00AA, \"Ez a Katona csapat!\"); } } return 1;}public OnPlayerSpawn(playerid){ if(gTeam[playerid] == TEAM_COP) { SetPlayerColor(playerid,0x33CCFFAA);//tessék itt a kék GivePlayerWeapon(playerid,26,1000); GivePlayerWeapon(playerid,32,1000); } else if(gTeam[playerid] == TEAM_ARMY) { SetPlayerColor(playerid,0xAFAFAFAA);//itt barna volt ez szürke GivePlayerWeapon(playerid,26,1000); GivePlayerWeapon(playerid,32,1000); } return 1;}