Spliting 3 values from a string
#6

pawn Код:
new newstr[3][75];
split(string[5], newstr, ",")
//I'd recommend using sscanf but your choice.
//If you want to use sscanf, use the following lines
//Plugin (If you have it): sscanf(string[5], "p<,>fff", X, Y, Z);
//Normal : sscanf(string[5], "p,fff", X, Y, Z);
new Float:X, Float:Y, Float:Z;
X = Floatstr(newstr[0]);
Y = Floatstr(newstr[1]);
Z = Floatstr(newstr[2]);
Reply


Messages In This Thread
Spliting 3 values from a string - by ||123|| - 31.08.2010, 18:17
Re: Spliting 3 values from a string - by Paladin - 31.08.2010, 18:19
Re: Spliting 3 values from a string - by ||123|| - 31.08.2010, 18:22
Re: Spliting 3 values from a string - by DarrenReeder - 31.08.2010, 18:23
Re: Spliting 3 values from a string - by Paladin - 31.08.2010, 18:25
Re: Spliting 3 values from a string - by [HiC]TheKiller - 31.08.2010, 19:54
Re: Spliting 3 values from a string - by [L3th4l] - 31.08.2010, 22:34

Forum Jump:


Users browsing this thread: 1 Guest(s)