GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: scott1 le 24 Mai 2010, 22:18:45

Titre: Beug de texdraw
Posté par: scott1 le 24 Mai 2010, 22:18:45
Bonsoir, j'ai un soucis avec ceci:


for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Inf[i] == 1 && GetPlayerState(i) == PLAYER_STATE_ONFOOT && INFO2[i] == 0)
{
new tmp[265]; new heure, minute, seconde; new argent; new niveau; new IP[MAX_PLAYERS]; new Ping;
gettime(heure, minute, seconde)
argent = GetPlayerMoney(i);
niveau = GetPlayerScore(i);
Ping = GetPlayerPing(i);
GetPlayerIp(i, IP, sizeof(IP));
if(BilgiGosterge[i] == true)
{
    TextDrawHideForPlayer(i, Text:Contournoircarrerstats);
    TextDrawHideForPlayer(i, Text:Cadreblanccarrerstats);
TextDrawHideForPlayer(i, Text:Fondcarrerstats);
TextDrawDestroy(Bilgi[i]);
}
if(PlayerInfo[i][pWatch] == 1)
{
format(tmp, sizeof(tmp), "~b~Heure: ~w~%d:%d:%d~n~~b~Argent: ~w~%d~g~$~n~~b~Niveau: ~w~%d~n~~b~IP: ~w~%s~n~~b~Playerid: ~w~%d~n~~b~Ping: ~w~%d~n~~g~%s",heure, minute, seconde, argent,niveau,IP,i,Ping,SITE);
}
else
{
format(tmp, sizeof(tmp), "~b~Heure: ~r~Pas de montre~n~~b~Argent: ~w~%d~g~$~n~~b~Niveau: ~w~%d~n~~b~IP: ~w~%s~n~~b~Playerid: ~w~%d~n~~b~Ping: ~w~%d~n~~g~%s",argent,niveau,IP,i,Ping,SITE);
}
            Bilgi[i] = TextDrawCreate(485.000000,355.000000,tmp);
            TextDrawAlignment(Bilgi[i],0);
TextDrawBackgroundColor(Bilgi[i],0x000000ff);
TextDrawFont(Bilgi[i],1);
TextDrawLetterSize(Bilgi[i],0.299999,1.000000);
TextDrawColor(Bilgi[i],0x00ffffff);
TextDrawSetProportional(Bilgi[i],1);
TextDrawSetShadow(Bilgi[i],1);
  TextDrawShowForPlayer(i, Bilgi[i]);
  TextDrawShowForPlayer(i, Text:Contournoircarrerstats);
    TextDrawShowForPlayer(i, Text:Cadreblanccarrerstats);
    TextDrawShowForPlayer(i, Text:Fondcarrerstats);
            BilgiGosterge[i] = true;
}
else
{
    if(BilgiGosterge[i] == true)
{
    TextDrawHideForPlayer(i, Text:Contournoircarrerstats);
    TextDrawHideForPlayer(i, Text:Cadreblanccarrerstats);
TextDrawHideForPlayer(i, Text:Fondcarrerstats);
TextDrawDestroy(Bilgi[i]);
}
}
}

Des fois seul les fond s'affiche pas les texte :s

Merci !
Titre: Re : Beug de texdraw
Posté par: scott1 le 30 Mai 2010, 16:05:43
up