Jump to content

Question

Posted (edited)
Problema intalnita (descriere):Am pus la job-ul trucker distange from point pe textdraw, dar nu scade, imi ramane metri de unde am dat /work.
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):Distance[1] = GetPlayerDistanceFromPoint(playerid, 1666.1508,862.3298,7.1562);
                                                format(string,sizeof(string),"Distance To Point: %.0f Metri",Distance[1]);
                                                TextDrawSetString(metri[playerid], string);
                                                TextDrawShowForPlayer(playerid, metri[playerid]);
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da,normal ca am incercat.
Edited by cOBRa

2 answers to this question

Recommended Posts

  • 0
Posted

Salut,incearca asa.

SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
TextDrawShowForPlayer(playerid, Textdraw-ulTau);
SetTimerEx("Distance", 1000, true, "iiii", playerid,  X, Y, Z);

forward Distance(playerid, Float:X, Float:Y, Float:Z);
public Distance(playerid, Float:X, Float:Y, Float:Z)
{
    new KM = (GetPlayerDistanceFromPoint(playerid, X, Y, Z)*4)/1000;

    new Str[100];
    format(Str, 100, "%0.1f KM pana la destinatie", KM);
    TextDrawSetString(Textdraw-ulTau, Str);
}

 

  • Upvote 1

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.