- 0
Problema Distanta
-
Similar Content
-
- 1 answer
- 220 views
-
- 3 answers
- 337 views
-
- 3 replies
- 389 views
-
- 1 reply
- 347 views
-
- 1 answer
- 202 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
kiLLers10
Problema intalnita (descriere): Am o problema la acest script . dar in loc sa imi calculeze distanta din punctul unde sunt eu pana in checkpoint si sa imi scada din distanta mie imi creste .
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
forward Distance(playerid, Float:X, Float:Y, Float:Z); public Distance(playerid, Float:X, Float:Y, Float:Z) { new Float: fDistance = GetPlayerDistanceFromPoint(playerid, X, Y, Z)/1000; new Str[100]; format(Str, 100, "~w~Mai ai %0.1f km de parcurs)", fDistance); //TextDrawSetString(InfoTD, Str); PlayerTextDrawSetString(playerid, InfoTD, Str); } Si aici este checkpoint-ul SetPlayerCheckpoint(playerid, 2700.3777, -2388.7659, 13.7271, 3.0); PlayerTextDrawShow(playerid, InfoTD); SetTimerEx("Distance", 1000, true, "iiii", playerid, X, Y, Z);
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:
Link to comment
Share on other sites
14 answers to this question
Recommended Posts