Read_file and Write_file code
I need to read number from some cfg file.
For example I have %s/PlayerLOGs/plogs.cfg and in plogs.cfg first line contains number 5 (f.e) Number of lines - 1 line. new plogspath[64] get_configsdir( plogspath, 63 ) server_cmd("exec %s/PlayerLOGs/plogs.cfg", plogspath ) new filename[128] new len formatex(filename, 127, "%s/plogs.cfg", plogspath) read_file(filename, 1, What I must write here, 63, And here) |
Re: Read_file and Write_file code
Read it like any other line then do a str_to_num()
|
Re: Read_file and Write_file code
read_file(filename, 1, What I must write here, 63, And here)
|
Re: Read_file and Write_file code
|
Re: Read_file and Write_file code
Muhhahahahah If you dint know I find it before ask!
|
| All times are GMT -4. The time now is 21:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.