Problem ( 1 Error ) a compling.. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem ( 1 Error ) a compling.. (
/showthread.php?tid=69613)
Problem ( 1 Error ) a compling.. -
Typhome - 19.03.2009
Код:
C:\Users\Martin\Desktop\cf samp\new\larp.pwn(43813) : error 021: symbol already defined: "NameTimer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Help ?
Theres NewTimer code:
Код:
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)
{
if(PlayerInfo[q][pMaskuse] != 1)
{
ShowPlayerNameTagForPlayer(i,q,1);
}
}
else
{
ShowPlayerNameTagForPlayer(i,q,0);
}
}
}
}
}
}
}
Source is LARP / Los Angeles RP
Re: Problem ( 1 Error ) a compling.. -
MenaceX^ - 19.03.2009
What's so hard to understand from 'symbol already defined: "NameTimer"'
The error tell you everything.
Re: Problem ( 1 Error ) a compling.. -
Typhome - 19.03.2009
I dont know how do fix that. im so much begginer scripter
Re: Problem ( 1 Error ) a compling.. -
MenaceX^ - 19.03.2009
'NameTimer' is existing in your mode more than one time
Re: Problem ( 1 Error ) a compling.. -
hazdog - 19.03.2009
it means you've already told the system what to do when the function is called.... you have two public NameTimer()
like
public NameTimer()
{
blahblahblah
}
public NameTimer()
{
blahblahblahblahblah
}
remove one of them and its fixed
Re: Problem ( 1 Error ) a compling.. -
Typhome - 19.03.2009
pawn Код:
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new string[128];
NameTimer();
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
Re: Problem ( 1 Error ) a compling.. -
MenaceX^ - 19.03.2009
Quote:
Originally Posted by hazdog
it means you've already told the system what to do when the function is called.... you have two public NameTimer()
like
public NameTimer()
{
blahblahblah
}
public NameTimer()
{
blahblahblahblahblah
}
remove one of them and its fixed
|
It's not a one more public for sure, it can be many things.
Re: Problem ( 1 Error ) a compling.. -
Typhome - 19.03.2009
Quote:
Originally Posted by hazdog
it means you've already told the system what to do when the function is called.... you have two public NameTimer()
like
public NameTimer()
{
blahblahblah
}
public NameTimer()
{
blahblahblahblahblah
}
remove one of them and its fixed
|
I have found only one NameTimer
Re: Problem ( 1 Error ) a compling.. -
Typhome - 19.03.2009
Help please. Thanks.
Re: Problem ( 1 Error ) a compling.. -
mascii - 19.03.2009
click on the binoculars and search NameTimer