31.12.2012, 15:39
Look, I have file name 0.txt, it`s arena.
in file is
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
in file is
Quote:
att=-2626.1035,2250.6650,7.8385 |
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); |