Compile error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Compile error (
/showthread.php?tid=114788)
Compile error -
MrF1zzy - 20.12.2009
Hey everyone, when i try to compile, it goes wrong and shows me this stuff
: error 021: symbol already defined: "NameTimer"
Plus 23 errors.
Morphinc
new pdistance = 1;
forward NameTimer();
Float:GetPointDistanceToPointExMorph(Float

1,Floa t:y1,Float:z1,Float

2,Float:y2,Float:z2)
{
new Float

, Float:y, Float:z;
x = x1-x2;
y = y1-y2;
z = z1-z2;
return floatsqroot(x*x+y*y+z*z);
}
stock SetPDistance(dista)
{
pdistance = dista;
}
stock GetPDistance()
{
return pdistance;
}
stock EnableDistancedNameTag(delay)
{
SetTimer("NameTimer",delay,1);
}
forward NameTimer();
--------------
Reallly need help please! Thanks.
Re: Compile error -
PANNA - 20.12.2009
maybe that helps, delete the one at the bottom.