Voici la public
public NameTimer()
ligne 43813-->>>{
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);
}
}
}
}
}
}
}
et la SEUL fois ou Nametimer est ennocé:
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new string[128];
NameTimer();
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
(enfin le seul visible avec la fonction recherche)
Double post
Ben pourtant non, quand j'ajoute
new NameTimer;
sa me fait (en compilant):
C:\Documents and Settings\Lychaos\Bureau\LAR\Gamemode\larp.pwn(710) : error 021: symbol already defined: "NameTimer"
C:\Documents and Settings\Lychaos\Bureau\LAR\Gamemode\larp.pwn(43814) : error 021: symbol already defined: "NameTimer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
[/s]
je n'y comprend plus rien, voila que ma premiere erreur est de retour :s j'ai vraiment pas de chance