- 0
Problema Distanta
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
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?:
14 answers to this question
Recommended Posts