Dini x,y,z in one line
#1

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.
Reply
#2

i cant understand what u mean u can use SetPlayerPos(playerid,x,y,z........)
Reply
#3

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
Quote:

new Floatx, Floaty, Floatz;
px = dini_Float(file, "X");
py = dini_Float(file, "Y");
pz = dini_Float(file, "Z");
SetPlayerPos(playerid, px, py, pz);

But I need get it from one line
Reply
#4

Up,Please help
Reply
#5

use explode function. search for it and replace the delimiter with a comma ,
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)