help Spikestrips
#1

Is there something wrong with this ?
Код:
 }

forward SpikeStrip();
public SpikeStrip()
{
    if(AttachedToMagnet != -1)
    {
		new Float:x,Float:y,Float:z;
		GetDynamicObjectPos(cranemagnet,x,y,z);
		SetVehiclePos(AttachedToMagnet,x,y,z-2);
    }
	if(SpikeStrips > 0)
	{
	    //SendClientMessageToAll(COLOR_BLUE,"Spike Down");
	    for(new i = 0; i<MAX_PLAYERS; i++)
	    {
	        for(new j = 1; j<=SpikeStrips; j++)
	        {
		        if(PlayerToPoint(4, i, SpikeStripCoordX[j], SpikeStripCoordY[j], SpikeStripCoordZ[j]))
		        {
		            if(IsPlayerInAnyVehicle(i))
		            {
		                new panels,doors,lights,tires;
		                new carid = GetPlayerVehicleID(i);
		                GetVehicleDamageStatus(carid,panels,doors,lights,tires);
		            	UpdateVehicleDamageStatus(carid,panels,doors,lights,15);
               			//SendClientMessageToAll(COLOR_BLUE,"Match");
		            }
		        }
			}
	    }
	}
	if(SpikeStripsFBI > 0)
	{
	    for(new i = 0; i<MAX_PLAYERS; i++)
	    {
	        for(new j = 1; j<=SpikeStripsFBI; j++)
	        {
		        if(PlayerToPoint(3, i, SpikeStripCoordFBIX[j], SpikeStripCoordFBIY[j], SpikeStripCoordFBIZ[j]))
		        {
		            if(IsPlayerInAnyVehicle(i))
		            {
		                new panels,doors,lights,tires;
		                new carid = GetPlayerVehicleID(i);
		                GetVehicleDamageStatus(carid,panels,doors,lights,tires);
		            	UpdateVehicleDamageStatus(carid,panels,doors,lights,15);
		            }
		        }
			}
	    }
	}
}
I get this error.

Код:
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44712) : error 017: undefined symbol "GetVehicleDamageStatus"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44713) : error 017: undefined symbol "UpdateVehicleDamageStatus"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44711) : warning 204: symbol is assigned a value that is never used: "carid"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44710) : warning 203: symbol is never used: "tires"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44710) : warning 203: symbol is never used: "lights"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44710) : warning 203: symbol is never used: "doors"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44710) : warning 203: symbol is never used: "panels"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44732) : error 017: undefined symbol "GetVehicleDamageStatus"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44733) : error 017: undefined symbol "UpdateVehicleDamageStatus"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44731) : warning 204: symbol is assigned a value that is never used: "carid"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44730) : warning 203: symbol is never used: "tires"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44730) : warning 203: symbol is never used: "lights"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44730) : warning 203: symbol is never used: "doors"
C:\Users\RЖV\Desktop\Ny mappe\gamemodes\WLRP.pwn(44730) : warning 203: symbol is never used: "panels"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#2

Update to the lastest windows include.

http://www.sa-mp.com/download.php
Reply
#3

Its not good to get [ sometimes even steal ] the script and ask for help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)