Raised This Month: $ Target: $400
 0% 

Ban Player from Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-01-2019 , 14:36   Re: Ban Player from Menu
Reply With Quote #8

Quote:
new szUserId = str_to_num(get_user_userid(tempid))
This function requires a string as the first argument, but you're giving it an integer. get_user_userid is already an integer, why are you trying to convert it?
You need to convert it to a string in order to use it with menu_additem. You need num_to_str, not str_to_num.

Quote:
menu_additem(menu, szName, szUserId, 0)
Again - szUserId should be a string, in your case it's an integer.
__________________

Last edited by OciXCrom; 06-01-2019 at 14:36.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 17:22.


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