19.09.2011, 15:54
(
Последний раз редактировалось HotPlayer; 19.09.2011 в 16:05.
Причина: hellllllllppppppppppppppppp
)
Hello all,
i have a anti weapons cheat script from lux admin!
i have edited it but i have 2 warnings
Script of anti cheat:
2 Warnings of script:
What its go wrong?
PLZ help!
i have a anti weapons cheat script from lux admin!
i have edited it but i have 2 warnings
Script of anti cheat:
Код:
public WeaponCheck(playerid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
new lbweapon[64];
new var;
var=GetPlayerWeapon(i);
if(IsForbiddenWeapon(var) && WeaponForbiddenForPlayer[i][var] && AccInfo[i][Level] == 0 && ServerInfo[ForbiddenWeaps] == 1)
{
new string[128];
GetPlayerName(playerid, string, 20);
format(string, sizeof(string), "Anti{E2FF09}C{FA0404}heat: Player: {FFFFFF}%s{FA0404} kicked from server. | Reason: Weapon-Hack", string);
SendClientMessageToAll(0xFF0000AA, string);
SendClientMessage(playerid,lightred, "Anti{E2FF09}C{FA0404}heat: You have automatically kicked. | Reason: Weapon-Hack");
return Kick(i, lbweapon);
new str[128];
format(str, sizeof(str) ,"%s has been Kicked from AC-System. | Weapon-Hack",string);
SaveIn("KickLog",str);
}
}
return 1;
}
Код:
C:\Users\Admin\Desktop\Server\filterscripts\LuxAdmin.pwn(11271) : warning 202: number of arguments does not match definition C:\Users\Admin\Desktop\Server\filterscripts\LuxAdmin.pwn(11273) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
PLZ help!

