Raised This Month: $ Target: $400
 0% 

[SOLVED]Little problem with set_user_flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rompom7
Senior Member
Join Date: May 2004
Old 06-13-2004 , 23:28   [SOLVED]Little problem with set_user_flags
Reply With Quote #1

I am trying to log someone out from admin privilages.

Code:
public logout(id) {     set_user_flags(id, "z")     client_print(id, print_console, "[AMXX AUTH] You are now logged out of administrator status")     return PLUGIN_HANDLED }

Quote:
amx_logincopy.sma(75) : error 035: argument type mismatch (argument 2)

1 Error.
I knew that wouldn't work but I tried it anyway.

I have also tried

Code:
public logout(id) {     set_user_flags(id, ADMIN_USER)     client_print(id, print_console, "[AMXX AUTH] You are now logged out of administrator status")     return PLUGIN_HANDLED }

It compiles but when I login then logout it I still have admin flags

and I have also tried

Code:
public logout(id) {     set_user_flags(id, -1)     client_print(id, print_console, "[AMXX AUTH] You are now logged out of administrator status")     return PLUGIN_HANDLED }

It compiles but when I login then logout it I still have admin flags

Any ideas anyone?
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
Mugwump
Senior Member
Join Date: May 2004
Old 06-14-2004 , 11:05  
Reply With Quote #2

Try the function remove_user_flags(id) instead , that might work better.

Both the set_user_flags() and remove_user_flags() natives are defined in amxmodx.inc ...


Mugwump
Mugwump is offline
rompom7
Senior Member
Join Date: May 2004
Old 06-15-2004 , 03:53  
Reply With Quote #3

Thanks I will try it out.
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
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 14:45.


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