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.
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(i, zoneid));
if(IsPlayerConnected(i) && gTeam[i] == teamid && IsPlayerInZone(i, zoneid));
pawn Код:
|
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(i, zoneid))
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.
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(i, zoneid))
stock IsPlayerInZone(playerid, zoneid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
return (x > ZoneInfo[zoneid][zMinX] && x < ZoneInfo[zoneid][zMaxX] && y > ZoneInfo[zoneid][zMinY] && y < ZoneInfo[zoneid][zMaxY]);
}
stock GetPlayersInZone(zoneid, teamid)
{
new count;
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam(i) == teamid && IsPlayerInZone(i, zoneid)) //here's the error
{
count++;
}
}
return count;
}
if(IsPlayerConnected(i) && gTeam[i] == teamid && IsPlayerInZone(i, zoneid))
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.
if(IsPlayerConnected(killerid) && gTeam[playerid] != gTeam(killerid))
if(IsPlayerConnected(killerid) && gTeam[playerid] != gTeam(killerid))