I need help with capture zone
#1

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
Reply
#2

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?
Reply
#3

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");
                }
Reply
#4

Bump
Reply
#5

show the where u defined "NOTCAP"
Reply
#6

pawn Code:
#define NOTCAP
Reply
#7

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

i show them look again
Reply
#9

bump
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)