Raised This Month: $ Target: $400
 0% 

Write file (ID.txt)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-02-2006 , 13:55  
Reply With Quote #5

Try this. I didn't modify your code that much, just indented a bit.
Code:
public cmdChat(id,level,cid) {     if (!cmd_access(id,level,cid,2))         return PLUGIN_HANDLED     new message[192]     read_args(message,191)     remove_quotes(message); // remove the quotes     new password[32] /* = "si" NOT a good idea! use copy instead */     copy(password , 32 , "si");     new authid[33];     get_user_authid(id , authid , 32); // get their steamid     if(equali(message,password))     {         static text[256];         formatex( text, 255, "addons/amxmodx/acalight/%i.txt", authid );         write_file( text , steamid , -1 ); // writes their steamid to the end of the file         // you MUST create the 'acalight' directory first!!     }     return PLUGIN_HANDLED }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 05:13.


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