Raised This Month: $ Target: $400
 0% 

How to read/write a certain file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 05-11-2010 , 20:00   How to read/write a certain file
Reply With Quote #1

I've got a file and I want it to write someones steamid when they enter the server. How can I check if the steamid is already in the file?
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "CS Bank"
#define VERSION "1.0"
#define AUTHOR "OneMoreLevel"

new const CSBank [] = "CSBank.txt"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}
public 
client_connect (id) {
    new 
steamid[32]
    if (
is_user_connected (id)){
        
get_user_authid(idsteamidcharsmax(steamid))
        
write_fileCSBanksteamid,-1)
    }

__________________
60/100 60%
[||||||||||||||||||||]
Project: Warfighter mod
Blog:
http://sites.google.com/site/dailymultitasker/
PHP Code:
   if ( i_help_you "Yes" ) == )
    
set_user_karma(onemorelevel,add,+1
OneMoreLevel is offline
 



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 03:36.


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