SA-MP Forums Archive
Problem with gangwars! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with gangwars! (/showthread.php?tid=276574)



Problem with gangwars! - samtey - 14.08.2011

Hi!

I used MadeMan's tutorial for making gangwars! But it didn't work, so I changed such some things and now it gives me errors:

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 012: invalid function call, not a valid address
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : warning 215: expression has no effect
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 001: expected token: ";", but found ")"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : fatal error 107: too many error messages on one line

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


4 Errors.
Here is my line:

pawn Код:
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(i, zoneid))



Re: Problem with gangwars! - [MG]Dimi - 14.08.2011

You will have more luck if you post this in Tutorial Topic


AW: Problem with gangwars! - samtey - 14.08.2011

But nobody answers there, can anybody else help me?


AW: Problem with gangwars! - samtey - 14.08.2011

Oh, there u r right, but what now?

Lemme see...

Should I put such some things like playerinfos in or what?


Re: Problem with gangwars! - Wesley221 - 14.08.2011

Well, since you use it to check their team, and like ****** said its an array, not a function: You will need the '[ ]' for this, and not the '( )'


AW: Problem with gangwars! - samtey - 14.08.2011

Omg, I don't understand what to do now!

PHP код:
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(izoneid)) 
What the hell is there wrong?


AW: Problem with gangwars! - samtey - 14.08.2011

Any help please?


Re: Problem with gangwars! - Wesley221 - 14.08.2011

pawn Код:
gTeam(i)
By using the '( )', you tell the compiler its an function, and not an array.
pawn Код:
gTeam[i]
This is what i told u in the post above aswell


AW: Problem with gangwars! - samtey - 14.08.2011

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(541) : error 012: invalid function call, not a valid address
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(541) : warning 215: expression has no effect
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(541) : error 001: expected token: ";", but found ")"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(541) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(541) : fatal error 107: too many error messages on one line

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


4 Errors.
PHP код:
if(IsPlayerConnected(killerid) && gTeam[playerid] != gTeam(killerid)) // not a suicide or team kill 



AW: Problem with gangwars! - samtey - 14.08.2011

Any help please?