[HELP]Error when tying to compile
#1

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.
Reply
#2

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
Reply
#3

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

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

Pawno\includes Dude

( rep if its works ]
Reply
#6

// Top of your script
#include <morphinc>

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

I just tried that -_-
Reply
#8

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>
Reply
#9

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
Reply
#10

i dont understand your english
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)