01.03.2012, 22:33
Galera Estou com Esse Fs de Anti Speed Hack e ele ta dando um erro q nao concigui resolve
Erro:
Dou Reep ++
Erro:
pawn Код:
C:\Documents and Settings\Fernando\Desktop\anti-speed.pwn(48) : error 017: undefined symbol "GetPlayerDistanceFromPoint"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
/*
|----------------------------------------------------|
|___________________ Anti-Speed Hack ________________|
| |
| Creditos: Paulo_TerroR e Caio_Freeze |
|____________________________________________________|
*/
#define FILTERSCRIPT
#include <a_samp>
//============Define=========//
#define COR_VERDE 0x00FF00AA //
//===========================//
//========new=====//
//new string[128];//
//================//
//===forward====//
forward Hack(); //
//==============//
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Carregando Anti-Speed Hack... ");
print("--------------------------------------\n");
SetTimer("Hack", 1000, true);
return 1;
}
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Desligando Anti-Speed Hack... ");
print("--------------------------------------\n");
return 1;
}
public Hack()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new keys, updown, leftright, string[128];
GetPlayerKeys(i, keys, updown, leftright);
new Nome[MAX_PLAYER_NAME]; GetPlayerName(i, Nome, sizeof(Nome));
new Float:_Pos[3]; GetPlayerPos(i, _Pos[0], _Pos[1], _Pos[2]);
new Float:Pos = GetPlayerDistanceFromPoint(i, _Pos[0], _Pos[1], _Pos[2]);
if((keys & KEY_ACTION || keys & KEY_FIRE) && (floatround(floatmul(Pos, 10.0)) > 200) && (IsPlayerInAnyVehicle(i)))
{
format(string, 128, "Anti-Speed Hack: [%d]%s estб usando ******!", i, Nome);
if(IsPlayerAdmin(i))
SendClientMessage(i, COR_VERDE, string);
}
}
}
/*
|----------------------------------------------------|
|___________________ Anti-Speed Hack ________________|
| |
| Creditos: Paulo_TerroR e Caio_Freeze |
|____________________________________________________|
*/