SA-MP Forums Archive
Script won't compile in Pawno - 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: Script won't compile in Pawno (/showthread.php?tid=306042)



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.