SA-MP Forums Archive
[HELP]Error when tying to compile - 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)
+--- Thread: [HELP]Error when tying to compile (/showthread.php?tid=368812)



[HELP]Error when tying to compile - xSiiLenTx - 14.08.2012

Can you help me? I get this error:

Код:
C:\Users\Jalon\Downloads\EoL-RP\SA-MP Server\gamemodes\eolrp.pwn(7) : fatal error 100: cannot read from file: "morphinc"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re : [HELP]Error when tying to compile - BigBaws - 14.08.2012

Create a new include call it morphinc.inc

Код:
new pdistance = 1;
forward NameTimer();
Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
new Float:x, 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();
public NameTimer()
	{
	for(new i = 0;i < MAX_PLAYERS;i++)
 	{
 	if(IsPlayerConnected(i))
 	{
 	for(new q = 0;q < MAX_PLAYERS;q++)
 	{
	if(IsPlayerConnected(q))
	{
 	new Float:p1x;
	new Float:p1y;
	new Float:p1z;
	new Float:p2x;
	new Float:p2y;
	new Float:p2z;
	if(IsPlayerConnected(i) && IsPlayerConnected(q))
	{
	GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
	if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
		{
	    ShowPlayerNameTagForPlayer(i,q,1);
	    }
	else
		{
		ShowPlayerNameTagForPlayer(i,q,0);
		}
	}}}}}
}


Rep if i helps you good luck


Re: [HELP]Error when tying to compile - xSiiLenTx - 14.08.2012

Where do I place this in? xxx\Includes? Or Pawno\Includes ?


Re: [HELP]Error when tying to compile - xSiiLenTx - 14.08.2012

It isn't working even tho I put it in Pawno\Includes


Re : [HELP]Error when tying to compile - BigBaws - 14.08.2012

Pawno\includes Dude

( rep if its works ]



Re : [HELP]Error when tying to compile - BigBaws - 14.08.2012

// Top of your script
#include <morphinc>

ex :
Код:
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>



Re: [HELP]Error when tying to compile - xSiiLenTx - 14.08.2012

I just tried that -_-


Re: [HELP]Error when tying to compile - xSiiLenTx - 14.08.2012

What I have:
Код:
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <a_npc>
#include <streamer>
#include <Dini>
#include <dutils>
#include <foreach>



Re: [HELP]Error when tying to compile - [EnErGyS]KING - 14.08.2012

You need put it to:
"pawno/Include"
P.S. Open pawn where you put that include "You Server Name\pawno" Not CLICK ON GAMEMODE OR FILESCIPRT GO TO "You Server Name\pawno"(Where put that morphinc) Include


Re: [HELP]Error when tying to compile - xSiiLenTx - 14.08.2012

i dont understand your english