Dini x,y,z in one line - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dini x,y,z in one line (
/showthread.php?tid=403754)
Dini x,y,z in one line -
DreDasLT - 31.12.2012
att=-2626.1035,2250.6650,7.8385
Hi I have it in my .ini file. I need SetPlayerPos for player, from that file with dini, i can do it in each other lines, X,Y,Z but i need get position from one line, sorry for my bad english.
Re: Dini x,y,z in one line -
CBCandyBoy - 31.12.2012
i cant understand what u mean u can use SetPlayerPos(playerid,x,y,z........)
Re: Dini x,y,z in one line -
DreDasLT - 31.12.2012
Look, I have file name 0.txt, it`s arena.
in file is
Quote:
att=-2626.1035,2250.6650,7.8385
|
line.
Which i want to get, i want to SetPlayerPos(playerid,-2626.1035,2250.6650,7.8385); But how to get these float numbers? I can do it with
X
Y
Z
With
But I need get it from one line
Re: Dini x,y,z in one line -
DreDasLT - 01.01.2013
Up,Please help
Re: Dini x,y,z in one line -
eesh - 01.01.2013
use explode function. search for it and replace the delimiter with a comma ,