28.04.2014, 21:08
so in gm i normaly added like this
but i have lots of coordinate . so i want to new Float: RandomCP[][] read from txt file . how to do it ?
i don know how new Float: RandomCP[][] can read it ?
Код:
new Float: RandomCP[][] = { {-1312.9222,1041.6000,1038.2629}, {-1303.1730,1035.1603,1038.1464} };
but i have lots of coordinate . so i want to new Float: RandomCP[][] read from txt file . how to do it ?
Код:
io=0; file=fopen("RandomCP.txt",io_read); while(ftw) { new string[200]; fread(file, string); new Float:x, Float:y, Float:z; sscanf(string, "fff", x, y, z); io++; fclose(file); }