Jump to content
  • 0

Help mee


cOBRa

Question

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

 

 

Link to comment
Share on other sites

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.