18.05.2012, 14:16
i want to give capture zones to my friend so he he can add in his server i made this but there is error
this is error
Код:
#define PAKISTAN_COLOR 0x008040D8 #define GERMANY_COLOR 0x8040009C #define USA_COLOR 0x004080FF #define RUSSIA_COLOR 0xFF0000FF #define INDIA_COLOR 0xFFFF0000 new Checkpoint[MAX_PLAYERS]; public OnGameModeInIt() { SetPlayerCheckpoint(playerid, 642.7595, 1705.338, 15, 5); // Pink SetPlayerCheckpoint(playerid, 268.5911, 2907.791, 15, 5); // Pink SetPlayerCheckpoint(playerid, -548.8602, 2580.811, 15, 5); // Pink SetPlayerCheckpoint(playerid, -23.35575, 2358.931, 15, 5); // Pink SetPlayerCheckpoint(playerid, -326.9805, 1529.802, 15, 5); // Pink SetPlayerCheckpoint(playerid, -385.3699, 2218.796, 15, 5); // Pink SetPlayerCheckpoint(playerid, -1179.465, 1810.071, 15, 5); // Pink SetPlayerCheckpoint(playerid, -1459.734, 1868.46, 15, 5); // Pink SetPlayerCheckpoint(playerid, 221.8796, 1401.345, 15, 5); // Pink SetPlayerCheckpoint(playerid, -782.4177, 2744.301, 15, 5); // Pink return 1; } public OnPlayerEnterCheckpoint(playerid) { if(Checkpoint[playerid] = 1) { SendClientMessage(playerid,color,"wait 30 seconds"); SetTimerEx("SetZone",40000,false,"i",playerid); } return 1; } forward SetZone(playerid); public SetZone(playerid) { SetPlayerScore(playerid,GetPlayerScore(playerid)+5 ), GivePlayerCash(playerid,500), SendClientMessage(playerid, COLOR_BLUE,"You've capture the zone and receive 500 $ and 5 score"); if (gTeam[playerid] == PAKISTAN) { GangZoneShowForAll(gangzone, PAKISTAN_COLOR); } else if (gTeam[playerid] == GERMANY) { GangZoneShowForAll(gangzone, GERMANY_COLOR); } else if (gTeam[playerid] == USA) { GangZoneShowForAll(gangzone, USA_COLOR); } else if (gTeam[playerid] == RUSSIA) { GangZoneShowForAll(gangzone, RUSSIA_COLOR); } else if (gTeam[playerid] == INDIA) { GangZoneShowForAll(gangzone, INDIA_COLOR); } return 1; } //====================== // Above OnGameModeInit: new Gas Station; // OnGameModeInit Insert public OnGameModeInit() { Gas Station = GangZoneCreate(572.4723, 1685.998, 673.9983, 1740.151); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Gas Station, 0xFF0000F0); return 1; } //====================== //====================== // Above OnGameModeInit: new Big Ear; // OnGameModeInit Insert public OnGameModeInit() { Big Ear = GangZoneCreate(-362.0141, 1436.379, -245.2354, 1541.479); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Big Ear, 0xFF000094); return 1; } //====================== //====================== // Above OnGameModeInit: new Army Restruant; // OnGameModeInit Insert public OnGameModeInit() { Army Restruant = GangZoneCreate(-583.8938, 2510.743, -467.115, 2627.522); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Army Restruant, 0xFF000096); return 1; } //====================== //====================== // Above OnGameModeInit: new Oil Refinery; // OnGameModeInit Insert public OnGameModeInit() { Oil Refinery = GangZoneCreate(140.1345, 1342.956, 256.9133, 1448.057); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Oil Refinery, 0xFF000096); return 1; } //====================== //====================== // Above OnGameModeInit: new Beach Shack; // OnGameModeInit Insert public OnGameModeInit() { Beach Shack = GangZoneCreate(221.8796, 2872.757, 280.269, 2954.502); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Beach Shack, 0xFF000096); return 1; } //====================== //====================== // Above OnGameModeInit: new Rusty Bridge; // OnGameModeInit Insert public OnGameModeInit() { Rusty Bridge = GangZoneCreate(-829.1292, 2720.945, -712.3504, 2779.334); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Rusty Bridge, 0xFF000096); return 1; } //====================== //====================== // Above OnGameModeInit: new Lost Valley; // OnGameModeInit Insert public OnGameModeInit() { Lost Valley = GangZoneCreate(-455.4371, 2160.407, -350.3363, 2288.864); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Lost Valley, 0xFF000096); return 1; } //====================== //====================== // Above OnGameModeInit: new Snake's Farm; // OnGameModeInit Insert public OnGameModeInit() { Snake's Farm = GangZoneCreate(-81.74512, 2323.897, -11.67788, 2358.931); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Snake's Farm, 0xFF000096); return 1; } //====================== //====================== // Above OnGameModeInit: new Cluckin Bell; // OnGameModeInit Insert public OnGameModeInit() { Cluckin Bell = GangZoneCreate(-1237.855, 1775.037, -1167.788, 1845.104); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Cluckin Bell, 0xFF000096); return 1; } //====================== //====================== // Above OnGameModeInit: new Abondand Gas Station; // OnGameModeInit Insert public OnGameModeInit() { Abondand Gas Station = GangZoneCreate(-1529.802, 1810.071, -1413.023, 1891.816); return 1; } // Player Spawn public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, Abondand Gas Station, 0xFF000096); return 1; } //======================
Код:
D:\finalcapturezone.pwn(7) : error 017: undefined symbol "MAX_PLAYERS" D:\finalcapturezone.pwn(7) : error 009: invalid array size (negative, zero or out of bounds) D:\finalcapturezone.pwn(9) : warning 235: public function lacks forward declaration (symbol "OnGameModeInIt") D:\finalcapturezone.pwn(11) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(12) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(13) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(14) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(15) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(16) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(17) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(18) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(19) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(20) : error 017: undefined symbol "SetPlayerCheckpoint" D:\finalcapturezone.pwn(23) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterCheckpoint") D:\finalcapturezone.pwn(25) : warning 211: possibly unintended assignment D:\finalcapturezone.pwn(27) : error 017: undefined symbol "SendClientMessage" D:\finalcapturezone.pwn(28) : error 017: undefined symbol "SetTimerEx" D:\finalcapturezone.pwn(35) : error 017: undefined symbol "SetPlayerScore" D:\finalcapturezone.pwn(38) : error 017: undefined symbol "gTeam" D:\finalcapturezone.pwn(38) : warning 215: expression has no effect D:\finalcapturezone.pwn(38) : error 001: expected token: ";", but found "]" D:\finalcapturezone.pwn(38) : error 029: invalid expression, assumed zero D:\finalcapturezone.pwn(38) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 19 Errors.