26.02.2012, 20:57
Galera To com o Seguinte Erro:
Erro 1:
Erro 2:
Erro 3:
Me Ajudem PF dou Rep +
pawn Код:
C:\Documents and Settings\Fernando\Desktop\FilterScrips\Open\BrasilSamp.pwn(11996) : error 033: array must be indexed (variable "antixiter")
C:\Documents and Settings\Fernando\Desktop\FilterScrips\Open\BrasilSamp.pwn(12568) : error 033: array must be indexed (variable "antixiter")
C:\Documents and Settings\Fernando\Desktop\FilterScrips\Open\BrasilSamp.pwn(12648) : error 017: undefined symbol "pAdmn"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
pawn Код:
antixiter = 0;
Erro 2:
pawn Код:
if(antixiter == 1)
pawn Код:
else if(GetPlayerWeapon(playerid) == 16 && PlayerInfo[playerid][pDonateRank] <= 0 && PlayerInfo[playerid][pAdmn] <= 0)
pawn Код:
public CheckWeaponHack() // Anti Xiter de Armas e Jet Pack
{
new string[256];
new giveplayer[MAX_PLAYER_NAME];
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid))
{
if(antixiter == 1)
{
return 1;
}
if(PlayerInfo[playerid][pMember] == 21 && WantedPoints[playerid] >= 1) //Bopesu
{
WantedPoints[playerid] = 0;
return 1;
}
if(PlayerInfo[playerid][pMember] == 14 && WantedPoints[playerid] >= 1) //Bopesu
{
WantedPoints[playerid] = 0;
return 1;
}
if(spawnado[playerid] > 0)
{
// JetPack
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um JetPack use /espiar nele para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
// Minigun
else if(GetPlayerWeapon(playerid) == 38 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Minigun use /espiar nele para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
// Rocket Launcher
else if(GetPlayerWeapon(playerid) == 35 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Rocket Launcher /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
// Missil Tele-guiado
else if(GetPlayerWeapon(playerid) == 36 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Mнssil-Teleguiado /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
// Lanca chamas
else if(GetPlayerWeapon(playerid) == 37 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Lanca-Chamas /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//sniper
/*else if(GetPlayerWeapon(i) == 34 && PlayerInfo[i][pMember] != 21 && PlayerInfo[i][pMember] != 1 && PlayerInfo[i][pMember] != 2 && PlayerInfo[i][pMember] != 3 && PlayerInfo[i][pMember] != 8 && PlayerInfo[i][pAdmin] <= 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Sniper /espiar para ve-lo.", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(i, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(i);
}*/
//Serra Eletrica
else if(GetPlayerWeapon(playerid) == 9 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Serra-Elйtrica /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Granada
else if(GetPlayerWeapon(playerid) == 16 && PlayerInfo[playerid][pDonateRank] <= 0 && PlayerInfo[playerid][pAdmplayeridn] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Granada /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Molotov
else if(GetPlayerWeapon(playerid) == 18 && PlayerInfo[playerid][pDonateRank] <= 0 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Molotov /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Pistolas
//Sawn-off
else if(GetPlayerWeapon(playerid) == 26 && PlayerInfo[playerid][pDonateRank] <= 0 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Sawn-off /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Combat shotgun
else if(GetPlayerWeapon(playerid) == 27 && PlayerInfo[playerid][pDonateRank] <= 0 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Combat shotgun /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Micro Uzi
else if(GetPlayerWeapon(playerid) == 28 && PlayerInfo[playerid][pDonateRank] <= 0 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Micro Uzi /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Tec 9
else if(GetPlayerWeapon(playerid) == 32 && PlayerInfo[playerid][pDonateRank] <= 0 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma TEC-9 /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Satchel charges
else if(GetPlayerWeapon(playerid) == 39 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Satchel charges /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
//Detonador
else if(GetPlayerWeapon(playerid) == 40 && PlayerInfo[playerid][pAdmin] <= 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Detonador /espiar para ve-lo.", giveplayer,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
SendClientMessage(playerid, RED, "ANTICHEAT: Weapon-hacks detectado. Nгo faca mais isso.");
ResetPlayerWeapons(playerid);
}
}
}
}
return 1;
}