Script won't compile in Pawno
#1

Pls Help Guys I've finished my script but this error keeps shownig up
C:\Users\abc\Desktop\New folder\gamemodes\balkan-underground.pwn(50842) : error 021: symbol already defined: "NameTimer"
This is the code with the error

public NameTimer()

{
foreach (Player, i)
{
foreach (Player, 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)
{
if(PlayerInfo[q][pMaskuse] != 1)
{
ShowPlayerNameTagForPlayer(i,q,1);
}
}
else
{
ShowPlayerNameTagForPlayer(i,q,0);
}
}
}
}
}
Reply
#2

Please use

Tags around the code.


Did you forward or "new" your NameTimer?
Reply
#3

Put tags please, would help a lot more.
Reply
#4

forward NameTimer()
Reply
#5

Quote:
Originally Posted by prisonliferp
Посмотреть сообщение
Please use

Tags around the code.


Did you forward or "new" your NameTimer?
[ pawn ] text here [ /pawn ]
Reply
#6

You already have a "NameTimer", just rename that, the forward and the SetTimer.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)