23.06.2013, 18:19
I just got a good function from a filterscript and I want to put it on my GM but I get Errors:
The code is:
Please help me :/
Код:
C:\Users\Netzip\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3674) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3681) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3688) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3697) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3711) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3718) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3722) : error 017: undefined symbol "GivePlayerCash" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3725) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3732) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3739) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3754) : error 017: undefined symbol "GivePlayerCash" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3757) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3764) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3771) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3779) : error 017: undefined symbol "ABroadCast" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3785) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3794) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3806) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3814) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3833) : error 017: undefined symbol "ABroadCast" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3839) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3851) : error 017: undefined symbol "ABroadCast" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3853) : error 017: undefined symbol "ProxDetector" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3861) : error 017: undefined symbol "GivePlayerCash" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3864) : error 017: undefined symbol "ABroadCast" C:\Users\XXXX\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\HGRPv1.pwn(3866) : error 017: undefined symbol "ProxDetector" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
pawn Код:
if(IsKeyJustDown(KEY_YES, newkeys, oldkeys))
{
new vehicleid,panels,doors,lights,tires;
vehicleid = GetPlayerVehicleID(playerid);
if(!Flasher[vehicleid]) {
if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
{
return SendClientMessageEx(playerid, COLOR_GREY, "* You are not the driver!");
}
if (!GetVehicleModel(vehicleid)) return SendClientMessageEx(playerid, OLOR_GREY, "* You are not in a vehicle!");
if (IsValidObject(obj[vehicleid]) || IsValidObject(obj2[vehicleid]))
{
SendClientMessageEx(playerid, OLOR_GREY, "You switched off the lights."), DestroyObject(obj[vehicleid]), DestroyObject(obj2[vehicleid]);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
if(LightPwr[vehicleid] == 1)
UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
else
UpdateVehicleDamageStatus(vehicleid, panels, doors, 5, tires);
Flasher[vehicleid] = 0;
}
switch (GetVehicleModel(vehicleid))
{
case 596:
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 597:
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.599999,-0.375000,0.899999,0.000000,0.000000,0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 598:
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.524999, -0.300000, 0.899999, 0.000000, 0.000000, 0.000000);
AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.524999, -0.300000, 0.899999, 0.000000, 0.000000, 0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 599:
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
obj2[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.524999,0.000000,1.125000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(obj2[vehicleid], vehicleid, -0.524999,0.000000,1.125000,0.000000,0.000000,0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 541://bullet
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.375000,0.524999,0.375000,0.000000,0.000000,0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 426://premier
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.524999,0.749999,0.375000,0.000000,0.000000,0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 427://enforcer
{
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 416://Ambulance
{
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 407://FireTruck
{
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 560://sultan
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.225000,0.750000,0.449999,0.000000,0.000000,0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
case 490://FBI
{
obj[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(obj[vehicleid], vehicleid, 0.000000,1.125000,0.599999,0.000000,0.000000,0.000000);
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
Flasher[vehicleid] = 1;
}
default:
{
return SendClientMessageEx(playerid, OLOR_GREY, "You are not in a CODE 2 compatible police vehicle!");
}
}
return SendClientMessageEx(playerid, OLOR_GREY, "Lights on, you are now in a CODE 2 run!");
} else {
if (IsValidObject(obj[vehicleid]) || IsValidObject(obj2[vehicleid])) {
SendClientMessageEx(playerid, OLOR_GREY, "You switched off the lights."), DestroyObject(obj[vehicleid]), DestroyObject(obj2[vehicleid]);
}
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
if(LightPwr[vehicleid] == 1)
UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
else
UpdateVehicleDamageStatus(vehicleid, panels, doors, 5, tires);
Flasher[vehicleid] = 0;
}