06.11.2010, 13:35
(
Последний раз редактировалось Biesmen; 06.11.2010 в 14:23.
)
Solved. Thanks for the replies.
new File:vehicles=fopen("vehicles.txt", io_read);
new idx;
while(fread(vehicles, string)){
idx = 0
modelid = strval(strtok(string,idx));
X = floatstr(strtok(string,idx));
Y = floatstr(strtok(string,idx));
Z = floatstr(strtok(string,idx));
rot = floatstr(strtok(string,idx));
c1 = strval(strtok(string,idx));
c2 = strval(strtok(string,idx));
AddStaticVehicle(modelid,X,Y,Z,rot,c1,c2);
}
(...)411 2034.5016 1912.5874 11.9048 0.2909 123 1 411 2172.1682 1988.8643 10.5474 89.9151 116 1(...)
Код:
format(file, sizeof(file), "\\CarSystem\\%s.ini", playername); |