Raised This Month: $ Target: $400
 0% 

Replacing line in file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 05-14-2007 , 02:37   Re: Replacing line in file
Reply With Quote #6

I had this problem with one of my plugins before, but i forget excalty what it was. Can you paste your whole code, maybe it will refresh my memory. First though make sure you actually have a file called "list" in your configs folder.

you can also add this in your code if u dont have it:
Code:
new filename[256]
 
public plugin_init() {
      get_configsdir(filename,255)
      format(filename,255,"%s/list.txt",filename)
      if(!file_exists(filename))
      {
            write_file(filename,";list")
      }
}
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress

Last edited by scrtxxcaz; 05-14-2007 at 02:52.
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
 



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 10:38.


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