Raised This Month: $ Target: $400
 0% 

Writing values to textfile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BenSib
Senior Member
Join Date: Aug 2008
Old 09-29-2008 , 05:12   Writing values to textfile
Reply With Quote #1

I try to write values to a textfile for each Event_RoundEnd with:

native bool:WriteFileLine(Handle:hndl, const String:format[], any:...);

Can s.o. just make a stupid example?

Many thx.
BenSib is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 09-29-2008 , 06:55   Re: Writing values to textfile
Reply With Quote #2

Code:
new Handle:file = OpenFile("addons/roundend.log","a") if(file != INVALID_HANDLE) {     decl String:time[24]     FormatTime(time,sizeof time,"L %m/%d/%Y %H:%M:%S - ")     WriteFileLine(file,"%sEvent RoundEnd triggered",time)     CloseHandle(file) }
__________________
plop
p3tsin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode