View Single Post
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 11-16-2018 , 10:19   Re: [HELP] Client Menu
Reply With Quote #6

Quote:
Originally Posted by Dragokas View Post
+1, you need DB, KeyValues (depending on how many users) or direct editing the admins_simple.ini file (if you prever VIPs based on admin flags), like this one (code for removing only).
So hi again. I diceded to do this...

PHP Code:
char path[512];
FormatEx(pathsizeof(path), "addons/sourcemod/configs/admin_simple.ini");
if (!
FileExists(path))
{
        
char steamid[32];
        
GetClientAuthId(clientAuthId_Steam2steamidsizeof(steamid));
        
OpenFile(path"r+"false);
        
WriteFileLine("%s" "20:ao", ... , steamid);
        
WriteFileLine(
                
PrintToChat(client"Congrats! VIP was given to %s!"clientname);

But i got some errors

Code:
error 035: argument type mismatch (argument 1)

warning 215: expression has no effect

error 029: invalid expression, assumed zero

error 029: invalid expression, assumed zero

fatal error 190: too many error messages on one line
How do i fix this?

Thanks for all your help and others as well!
__________________
SpirT is offline