Raised This Month: $ Target: $400
 0% 

how to add stuff to a .txt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 11-12-2007 , 18:49   how to add stuff to a .txt
Reply With Quote #1

ok, guys i want to make a plugin so when someone types a cmd(of the plugin im makin) it will make a .txt in their mod/name of plugin folder

example:
cstrike/playerhelper

how would i do this?

the txt i would like to be like


--------------------------------Map name------------------------------
Info
-------------------------------Player Name------------------------------
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-12-2007 , 19:09   Re: how to add stuff to a .txt
Reply With Quote #2

log_to_file() in the procedure?
__________________
M249-M4A1 is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 11-12-2007 , 19:21   Re: how to add stuff to a .txt
Reply With Quote #3

ok, but how would i go on about adding the format i want?
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-12-2007 , 19:23   Re: how to add stuff to a .txt
Reply With Quote #4

Simple write_file ( http://amxmodx.org/funcwiki.php?go=func&id=88 )

Or, you can use one of the many file commands from C/C++ ( http://amxmodx.org/funcwiki.php?go=inc&id=3 )
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-12-2007 , 23:07   Re: how to add stuff to a .txt
Reply With Quote #5

It's better to use the f_* native, (c-style).

fopen, fwrite*, fput*, etc...
__________________
Arkshine is offline
Old 11-13-2007, 05:42
purple_pixie
This message has been deleted by purple_pixie.
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-13-2007 , 03:23   Re: how to add stuff to a .txt
Reply With Quote #7

You cannot write a file on the client's computer though, which is what it seems like he's asking in his first post.

If you could do that, it'd be way too easy to create viri on clients'
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
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 01:21.


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