SA-MP Forums Archive
I need help with capture zone - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I need help with capture zone (/showthread.php?tid=508789)



I need help with capture zone - 1fret - 23.04.2014

I followed a tutorial on how to make a capture zone system and im getting the following errors can someone help me please the code is below:

pawn Code:
//the errors and i have all of them defined but i still get these errors
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(292) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(785) : error 017: undefined symbol "NONE"
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3638) : error 017: undefined symbol "BALLOS"
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3642) : error 017: undefined symbol "POLICE"
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3646) : error 017: undefined symbol "BLUE"
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3650) : error 017: undefined symbol "GROVE"
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3661) : error 017: undefined symbol "TEAM_BALLOS"
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3681) : error 017: undefined symbol "NONE"
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3724) : error 017: undefined symbol "TEAM_BALLOS"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

//Under ongamemodeinit
tCP[CAPZONE] = NOTCAP;//Line 292
UnderAttack[CAPZONE] = 0;
Zone[CAPZONE] = GangZoneCreate(653.3203125,26.3671875,653.3203125,26.3671875);
CP[CAPZONE] = CreateDynamicCP(2487.9856,-1138.1130,38.8642, 3.0, -1, -1, -1, 100.0);

// the defines
#define TEAM_YSPAWN 1
#define TEAM_BALLAS 2
#define TEAM_POLICE 3
#define TEAM_BLUE 4
#define TEAM_GROVE 5



Re: I need help with capture zone - yvoms - 23.04.2014

Did u even Define those Teams?
pawn Code:
#define NONE
#define BALLOS
#define POLICE
#define BLUE
#define GROVE
#define TEAM_BALLOS
can you find any of those?


Re: I need help with capture zone - 1fret - 23.04.2014

Quote:
Originally Posted by yvoms
View Post
Did u even Define those Teams?
pawn Code:
#define NONE
#define BALLOS
#define POLICE
#define BLUE
#define GROVE
#define TEAM_BALLOS
can you find any of those?
i was hurrying. I found the problem and fixed it But i got some other errors these errors
pawn Code:
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(785) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\lskz.pwn(3681) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


 SetPlayerMapIcon(playerid, 2, 2521.3564,-1681.3511,14.8824, 19, MAPICON_GLOBAL);
    GangZoneShowForAll(Zone[CAPZONE], 0x00000043);
    IsPlayerCapturing[playerid][CAPZONE] = 0;
    CountVar[playerid][CAPZONE] = 25;
   if(tCP[CAPZONE] == NOTCAP) GangZoneShowForAll(Zone[CAPZONE], -66);//line 785
    else if(tCP[CAPZONE] == TEAM_YSPAWN) GangZoneShowForAll(Zone[CAPZONE],  0xFFFF00FF);
    else if(tCP[CAPZONE] == TEAM_BALLAS) GangZoneShowForAll(Zone[CAPZONE], 0x800080FF);
    else if(tCP[CAPZONE] == TEAM_POLICE) GangZoneShowForAll(Zone[CAPZONE], 0x0000FFFF);
    else if(tCP[CAPZONE] == TEAM_BLUE) GangZoneShowForAll(Zone[CAPZONE],0x00FFFFFF);
    else if(tCP[CAPZONE] == TEAM_GROVE) GangZoneShowForAll(Zone[CAPZONE],0x008000FF);


         else if(tCP[CAPZONE] == NOTCAP)//line 3681
                {
                  SendClientMessage(playerid, COLOR_RED,"This zone is not captured by any team");
                }



Re: I need help with capture zone - 1fret - 24.04.2014

Bump


Re: I need help with capture zone - BroZeus - 24.04.2014

show the where u defined "NOTCAP"


Re: I need help with capture zone - 1fret - 24.04.2014

pawn Code:
#define NOTCAP



Re: I need help with capture zone - Parallex - 24.04.2014

Show the lines 785 and 3681.
"And we are meant to guess your code?" :P


Re: I need help with capture zone - 1fret - 24.04.2014

i show them look again


Re: I need help with capture zone - 1fret - 24.04.2014

bump