Raised This Month: $ Target: $400
 0% 

Server Add automatic SteamId to .ini / is possible?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-17-2014 , 16:47   Re: Server Add automatic SteamId to .ini / is possible?
Reply With Quote #1

Post the code that you tried and then explain what you are actually trying to do. What "privileges" are you trying to give and for how long?
__________________
fysiks is offline
Bugg
Senior Member
Join Date: Jan 2012
Old 01-20-2014 , 10:53   Re: Server Add automatic SteamId to .ini / is possible?
Reply With Quote #2

PHP Code:
public client_authorized(id) {
    
    new 
Authid[35]
    
    
get_user_authid(idAuthidcharsmax(Authid))
    
    if(!
TrieKeyExists(UsersAuthid))
        
server_cmd("autoadd(id, %s)"Authid)
        



what´s wrong?
Server dont add automatic steamID to mly file .ini

why?

is this wrong --> server_cmd("autoadd(id, %s)", Authid)?

ty.

Last edited by Bugg; 01-20-2014 at 11:24.
Bugg is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-20-2014 , 10:54   Re: Server Add automatic SteamId to .ini / is possible?
Reply With Quote #3

Quote:
Originally Posted by Bugg View Post
is this wrong --> server_cmd("autoadd(id, %s)", Authid)?
Yes

Code:
server_cmd("autoadd ^"%s^"", Authid)
__________________
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
Bugg
Senior Member
Join Date: Jan 2012
Old 01-20-2014 , 11:23   Re: Server Add automatic SteamId to .ini / is possible?
Reply With Quote #4

Works!!!!!

I love you.
Bugg is offline
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 10:14.


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