Now I can't compile it..
Error: Argument type mismatch (argument 1) on line xy .. The line which contains this: new szUserId = str_to_num(get_user_userid(tempid))
and also: Error: Argument type mismatch (argument 3) on line xy .. The line with this: menu_additem(menu, szName, szUserId, 0);