04.12.2011, 01:42
I'm making a weapon hack system now i'm working on it on playerupdate
i made a stock in my include now the problem is i get this warning
Heres my code
Please help
i made a stock in my include now the problem is i get this warning
Код:
D:\GTA San Andreas\SAMP Server\pawno\include\XSI.inc(153) : warning 209: function "GetPlayerHackWeapon" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
pawn Код:
public OnPlayerUpdate(playerid)
{
new string[128],hackername[MAX_PLAYER_NAME];
GetPlayerName(playerid, hackername, MAX_PLAYER_NAME);
if(GetPlayerHackWeapon(playerid) && WeaponCheck[playerid] != 1)
{
format(string, sizeof(string),"ANTICHEAT: %s has been banned <Reason: Weapon Hack>", hackername);
SendClientMessageToAll(COLOR_RED, string);
BanEx(playerid,"Weapon Hack");
}
return 1;
}
stock GetPlayerHackWeapon(playerid)
{
if(GetPlayerWeapon(playerid) == 1
|| 2 || 3 || 4 || 5 || 6 || 7 || 8
|| 9 || 10 || 11 || 12 || 13 || 14
|| 15 || 16 || 17 || 18 || 19 || 20
|| 21 || 22 || 23 || 24 || 25 || 26
|| 27 || 28 || 29 || 30 || 31 || 32
|| 33 || 34 || 35 || 36 || 37 || 38
|| 39 || 40 || 41 || 42 || 43 || 44
|| 45 || 46)
return true;
}