GangZones errors(5)
#1

I get these errors from a capturing system I'm trying to make.

This is the link where i got it from: https://sampforum.blast.hk/showthread.php?tid=370571

and this is my simple script

http://pastebin.com/emrKqLY2

and these are the errors:

\SAMP\2012 the Final Battle\gamemodes\2012Battle - Copy.pwn(46) : error 020: invalid symbol name ""

\SAMP\2012 the Final Battle\gamemodes\2012Battle - Copy.pwn(57) : error 017: undefined symbol "CreateDynamicCP"

\SAMP\2012 the Final Battle\gamemodes\2012Battle - Copy.pwn(57) : error 029: invalid expression, assumed zero

\SAMP\2012 the Final Battle\gamemodes\2012Battle - Copy.pwn(57) : error 029: invalid expression, assumed zero

\SAMP\2012 the Final Battle\gamemodes\2012Battle - Copy.pwn(57) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

For the function CreateDynamicCP, you need streamer include & plugin, to your server.
You can download him here https://sampforum.blast.hk/showthread.php?tid=102865

To the other Errors, please show us the lines where to Error is.
Reply
#3

the parameters .............. are invalid

Код:
        CP[Zone] = CreateDynamicCP(.....);//line 57
        Zone[Zone] = GangZoneCreate(......);//line 58
You have to fill in someting properly there.


Somewhat higher up in your code you have this:

Код:
#define Zone 0
forward SetPlayerTeamFromClass(playerid, classid);
 
new gTeam[MAX_PLAYERS];
 
new CP[30];
new Zone[30];//line 46
as Zone is defined to mean 0, line 46 will compile as
Код:
0[30];
This is wrong coding.



Quote:
Originally Posted by MouseBreaker
Посмотреть сообщение
For the function CreateDynamicCP, you need streamer include & plugin, to your server.
You can download him here https://sampforum.blast.hk/showthread.php?tid=102865

To the other Errors, please show us the lines where to Error is.
How about reading his whole actual post and clicking on the pastebin link?
Reply
#4

i got streamer and ikkentim can you please correct it for me
Reply
#5

The code is supposed to be changed yourself. You have to define where the gangzones are.

For how CreateDynamicCP works, look here:
https://sampforum.blast.hk/showthread.php?tid=102865

For how GangZoneCreate works, look here:
https://sampwiki.blast.hk/wiki/GangZoneCreate

And about the Zone definition issue,
I did a quick scan trough the code, and it seems to be total crap anyways, it won't work for many reasons. When you have fixed these few bugs, more errors will pop up.

For example at line 70:
Код:
if(checkpointid == CP[Zone]) {
Zone isn't defined within
OnPlayerEnterDynamicCP

but is only defined to #define Zone 0
that means it will check for CP[0], and that means there is no point of CP being an array.
The code is completely wrong.
Reply
#6

lol ok forget it i cant understand this "non sense" :P
Reply


Forum Jump:


Users browsing this thread: