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.
__________________