SA-MP Forums Archive
Help again :D - 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: Help again :D (/showthread.php?tid=380894)



Help again :D - sl!x - 27.09.2012

I am new at scripting and need a little bit help can anybody help me with this tutorial Click Me
(make the script so i can copy paste it because when i try to make it i get a lot of error when i add it myself )


Re: Help again :D - MrPlatinum - 27.09.2012

When you added these under OnGameModeIni, did you enter these the way they were in the code?

Quote:

Under OnGameModeInit we will put the following code
pawn Код:
CP[Zone] = CreateDynamicCP(.....);
Same for GangZone

pawn Код:
Zone[Zone] = GangZoneCreate(......);



Re: Help again :D - sl!x - 27.09.2012

i added it and it says
Quote:

C:\Users\PC\Desktop\new\gamemodes\new.pwn(21 : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\new\gamemodes\new.pwn(21 : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\new\gamemodes\new.pwn(21 : warning 215: expression has no effect
C:\Users\PC\Desktop\new\gamemodes\new.pwn(21 : error 001: expected token: ";", but found "]"
C:\Users\PC\Desktop\new\gamemodes\new.pwn(21 : fatal error 107: too many error messages on one line

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


4 Errors.

And here is the line
Zone[Zone] = GangZoneCreate(93.423, 1331.278, 315.3026, 1506.446);

What have i done wrong


Re: Help again :D - Jarnu - 27.09.2012

well,
did you defined Zone?
like:
pawn Код:
#define Zone 0
On Top of your GM under includes?
and also check
did you defined

new Zone[30]; or Zone[10]; depends on how much capture zones you want


Re: Help again :D - sl!x - 27.09.2012

Quote:

new CP[1];
new Zone[1];
new tCheck[1];
new zDefine[MAX_PLAYERS];
new UnderAttack[1];
new timer[MAX_PLAYERS][30];
#define Zone 0

Is it right so?


Re: Help again :D - Jarnu - 27.09.2012

Well they are.