Apparement j'ai plus d'érreur avec les messages privé mais maintenant c'est la deuxieme erreur qui fou la mer** je veut enlever le name timer qu'il y a ici :
public busroutestoptimer(playerid)
{
if(IsPlayerConnected(playerid))
{
new newcar = GetPlayerVehicleID(playerid);
if(IsABus(newcar))
{
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Vous pouvez y allez!");
}
}
}
stock strvalEx( const string[] ) // fix for strval-bug with > 50 letters.
{
// written by mabako in less than a minute :X
if( strlen( string ) >= 50 ) return 0; // It will just return 0 if the string is too long
return strval(string);
}
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);
}
}
}
}
}
}
}
Mais je sais pas comment faire.
Quand je compile sa me met sa :
C:\Documents and Settings\Administrateur\Bureau\larpfrfix.Will_Wayne\larpfrfix\gamemodes\larptraduitfr.pwn(45342) : error 055: start of function body without function header
C:\Documents and Settings\Administrateur\Bureau\larpfrfix.Will_Wayne\larpfrfix\gamemodes\larptraduitfr.pwn(45343) : error 010: invalid function or declaration
C:\Documents and Settings\Administrateur\Bureau\larpfrfix.Will_Wayne\larpfrfix\gamemodes\larptraduitfr.pwn(46539) : error 021: symbol already defined: "NameTimer"
C:\Documents and Settings\Administrateur\Bureau\larpfrfix.Will_Wayne\larpfrfix\gamemodes\larptraduitfr.pwn(46573) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Administrateur\Bureau\larpfrfix.Will_Wayne\larpfrfix\gamemodes\larptraduitfr.pwn(47633) : warning 203: symbol is never used: "PlayerPos"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.