Problem with gangwars!
#1

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

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

But nobody answers there, can anybody else help me?
Reply
#4

Oh, there u r right, but what now?

Lemme see...

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

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 '( )'
Reply
#6

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

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

Any help please?
Reply
#8

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

Код:
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 
Reply
#10

Any help please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)