SA-MP Forums Archive
4 errors in one line... - 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: 4 errors in one line... (/showthread.php?tid=280162)



4 errors in one line... - samtey - 30.08.2011

Код:
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)); 



Re: 4 errors in one line... - [MWR]Blood - 30.08.2011

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



Re: 4 errors in one line... - AndreT - 30.08.2011

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.


Re: 4 errors in one line... - Pinguinn - 30.08.2011

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



AW: 4 errors in one line... - samtey - 30.08.2011

Код:
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)) 



Re: 4 errors in one line... - Vince - 30.08.2011

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


AW: 4 errors in one line... - samtey - 30.08.2011

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...


Re: 4 errors in one line... - Jafet_Macario - 30.08.2011

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


AW: 4 errors in one line... - samtey - 30.08.2011

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)) 



Re: 4 errors in one line... - Jafet_Macario - 30.08.2011

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