Script won't compile in Pawno -
mirza24 - 24.12.2011
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);
}
}
}
}
}
Re: Script won't compile in Pawno -
prisonliferp - 24.12.2011
Please use
Tags around the code.
Did you forward or "new" your NameTimer?
Re: Script won't compile in Pawno -
Mosslah - 24.12.2011
Put tags please, would help a lot more.
Re: Script won't compile in Pawno -
mirza24 - 24.12.2011
forward NameTimer()
Re: Script won't compile in Pawno - Astralis - 24.12.2011
Quote:
Originally Posted by prisonliferp
Please use
Tags around the code.
Did you forward or "new" your NameTimer?
|
[ pawn ] text here [ /pawn ]
Re: Script won't compile in Pawno -
[HiC]TheKiller - 24.12.2011
You already have a "NameTimer", just rename that, the forward and the SetTimer.