Raised This Month: $ Target: $400
 0% 

[prob] I need to know whats wrong with this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
habib2891
Member
Join Date: Jun 2008
Location: c:/Algeria/laghouat/habi
Old 12-28-2009 , 08:52   [prob] I need to know whats wrong with this
Reply With Quote #1

hello !
if any1 can help me correct this sentence :
Quote:
new name[35]
new uid=get_user_userid(id)
get_user_name(id,name,34)

set_user_flags(id , flags=a)
server_cmd("amx_nick #%d ^"[NotMember] %s ^"",uid,name)
Its to make the server change names if the players are not reg in the forum
thx )
habib2891 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-28-2009 , 08:58   Re: [prob] I need to know whats wrong with this
Reply With Quote #2

set_user_flags() line is incorrect but can be omitted because it is not needed to change a users name.
Code:
new name[35] get_user_name(id,name,34) server_cmd("amx_nick #%d ^"[NotMember] %s ^"", get_user_userid(id) , name )
__________________
Bugsy is offline
habib2891
Member
Join Date: Jun 2008
Location: c:/Algeria/laghouat/habi
Old 12-28-2009 , 09:04   Re: [prob] I need to know whats wrong with this
Reply With Quote #3

Quote:
set_user_flags() line is incorrect but can be omitted because it is not needed to change a users name
yes , but i need it to set "a" flags by default for all not registred players
habib2891 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-28-2009 , 09:37   Re: [prob] I need to know whats wrong with this
Reply With Quote #4

Quote:
Originally Posted by habib2891 View Post
yes , but i need it to set "a" flags by default for all not registred players
PHP Code:
set_user_flagsid get_user_flagsid ) | ADMIN_IMMUNITY );

//or 

set_user_flagsid get_user_flagsid ) | ADMIN_LEVEL_A );

//also try just doing (I recall set_user_flags actually being more along the lines of add_user_flags)

set_user_flagsid ADMIN_IMMUNITY ); 
__________________
Bugsy is offline
habib2891
Member
Join Date: Jun 2008
Location: c:/Algeria/laghouat/habi
Old 12-28-2009 , 10:57   Re: [prob] I need to know whats wrong with this
Reply With Quote #5

thanks Bugsy
habib2891 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 04:11.


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