Raised This Month: $ Target: $400
 0% 

How to read/write a certain file


Post New Thread Reply   
 
Thread Tools Display Modes
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
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-11-2010 , 20:12   Re: How to read/write a certain file
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=46218
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 05-11-2010 , 20:30   Re: How to read/write a certain file
Reply With Quote #3

I've read it and it's pretty hard to understand him. It also doesnt explain what I'm looking for.
__________________
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
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-11-2010 , 20:44   Re: How to read/write a certain file
Reply With Quote #4

http://66.228.116.138/showpost.php?p...3&postcount=15
__________________
Bugsy is offline
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 05-11-2010 , 20:46   Re: How to read/write a certain file
Reply With Quote #5

Actually, Is there a working CS Banking plugin?
__________________
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
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 05-12-2010 , 03:51   Re: How to read/write a certain file
Reply With Quote #6

yes there is one , just search for bank in here : http://www.amxmodx.org/compiler.php
SaM.ThE.MaN is offline
Reply


Thread Tools
Display Modes

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