only wrote one line
hey, i have one problem with my code and... the problem is :
when write some line in commandsdetected only wrote one line and replace the others :| code Code:
Code:
sorry for my enlgish but im spanish and i cant write any post in spanis section |
Re: only wrote one line
write_file() is not part of the C style file functions. It is used alone, without fopen() and fclose().
Take a look at fprintf() instead. "wt+" (if even supported in AMX Mod X, I don't know since there's nothing about it in the include.) will destroy all contents of the file before writing anything new. If you want to append to a file that may or may not exist you may use "a". Quote:
|
Re: only wrote one line
fixed this :D one problem more... how to make other line , because every time write but no in a new line :S
Quote:
Quote:
|
Re: only wrote one line
Just add ^n to the string to add a newline wherever you want it.
|
| All times are GMT -4. The time now is 09:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.