BTW: the xposs is recieved from a server so i cant just say its a float, i need it converted to a float with 0.0f behind:
xposs = "951.9791"
xspawn = float.Parse(yposs);
this just returns 951.9791 in a float but i want 951.9791f
i have also tried:
xposs = "951.9791"
xspawn = float.Parse(yposs) + 0.0f;
this still does not work.
I need it to be 0.0f format becaouse i use it in a Vector3(), and not having the f does not seem to work (well it works but the cordinates are totally wrong, and if i manually press f after it works.)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…