4 errors in one line...
#1

Код:
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 012: invalid function call, not a valid address
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : warning 215: expression has no effect
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 001: expected token: ";", but found ")"
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 029: invalid expression, assumed zero
D:\Program Files\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.
That's the line:

PHP код:
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(izoneid)); 
Reply
#2

pawn Код:
if(IsPlayerConnected(i) && gTeam[i] == teamid && IsPlayerInZone(i, zoneid));
Reply
#3

Quote:
Originally Posted by Delux13
Посмотреть сообщение
pawn Код:
if(IsPlayerConnected(i) && gTeam[i] == teamid && IsPlayerInZone(i, zoneid));
How would that fix anything? You still have the unnecessary semicolon there.
Reply
#4

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

Код:
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 012: invalid function call, not a valid address
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : warning 215: expression has no effect
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 001: expected token: ";", but found ")"
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(167) : error 029: invalid expression, assumed zero
D:\Program Files\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.
still the same shit...

I took this one:

PHP код:
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(izoneid)) 
Reply
#6

What's above and below that line? As far as I can see there's nothing wrong with it.
Reply
#7

PHP код:
            stock IsPlayerInZone(playeridzoneid)
            {
                new 
Float:xFloat:yFloat:z;
                
GetPlayerPos(playeridxyz);
                return (
ZoneInfo[zoneid][zMinX] && ZoneInfo[zoneid][zMaxX] && ZoneInfo[zoneid][zMinY] && ZoneInfo[zoneid][zMaxY]);
            }
            
stock GetPlayersInZone(zoneidteamid)
            {
                new 
count;
                for(new 
i=0MAX_PLAYERSi++)
                {
           if(
IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(izoneid)) //here's the error
                    
{
                        
count++;
                    }
                }
                return 
count;
            } 
I commented the line...
Reply
#8

PHP код:
if(IsPlayerConnected(i) && gTeam[i] == teamid && IsPlayerInZone(izoneid)) 
Try this
Reply
#9

Now I get these errors, I think in the line is the same thing

Код:
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(531) : error 012: invalid function call, not a valid address
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(531) : warning 215: expression has no effect
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(531) : error 001: expected token: ";", but found ")"
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(531) : error 029: invalid expression, assumed zero
D:\Program Files\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(531) : 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)) 
Reply
#10

Show us above and below
PHP код:
if(IsPlayerConnected(killerid) && gTeam[playerid] != gTeam(killerid)) 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)