Antihack problem - 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: Antihack problem (
/showthread.php?tid=231526)
Antihack problem -
marinov - 25.02.2011
pawn Код:
public AntiHack()
{
foreach(Player, i)
{
new Float:Health;
GetPlayerHealth(i, Health);
if(Health > 200 && pInfo[i][Team] !== 2)
{
BanEx(i, "Health Hacker");
}
}
}
pawn Код:
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2297) : warning 219: local variable "Health" shadows a variable at a preceding level
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2298) : error 035: argument type mismatch (argument 2)
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2299) : warning 213: tag mismatch
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2299) : error 029: invalid expression, assumed zero
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2299) : warning 215: expression has no effect
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2299) : error 001: expected token: ";", but found ")"
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2299) : error 029: invalid expression, assumed zero
C:\Users\Marino (Desktop)\Desktop\Samp Servers\Zombie Outbreak\gamemodes\Zombie_Outbreak_Original_Updating.pwn(2299) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Re: Antihack problem -
maramizo - 25.02.2011
pawn Код:
public AntiHack()
{
foreach(Player, i)
{
new Float:Healtha;
GetPlayerHealth(i, Healtha);
if(Healtha > 200 && pInfo[i][Team] != 2)
{
BanEx(i, "Health Hacker");
}
}
}
Re: Antihack problem -
marinov - 25.02.2011
thanks