Quote:
Originally Posted by Jefff
pawn Код:
new File:HouseFile = fopen(filename_here, io_read); if(!HouseFile) return file bla bla doesnt exist new string[128], unique, interior, Float:Pos[4], name[64]; while(fread(HouseFile, string)) { if(strval(string) == hinterior) { sscanf(string,"iia<f>[4]p<;>s[64]",unique, interior, Pos, name); break; } } fclose(HouseFile);
|
Thank you, but it will read whole file then, I need just one line, depending on ID you write in CMD "/createhouse ID" and that ID will navigate you to the line I want to read. (Unique ID)