GangZones errors(5) -
megamind2067 - 21.11.2012
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.
AW: GangZones errors(5) -
Skimmer - 21.11.2012
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.
Re: GangZones errors(5) -
ikkentim - 21.11.2012
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
This is wrong coding.
Quote:
Originally Posted by MouseBreaker
|
How about reading his
whole actual post and clicking on the pastebin link

?
Re: GangZones errors(5) -
megamind2067 - 21.11.2012
i got streamer and ikkentim can you please correct it for me
Re: GangZones errors(5) -
ikkentim - 21.11.2012
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.
Re: GangZones errors(5) -
megamind2067 - 21.11.2012
lol ok forget it i cant understand this "non sense" :P