Raised This Month: $ Target: $400
 0% 

Solved messagemode in menu doesn't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Akka3223
Member
Join Date: Oct 2016
Old 08-18-2019 , 16:00   messagemode in menu doesn't work
Reply With Quote #1

Hello there,


somehow i don't understand why doesn't this work, could someone help me with this?
in console i can't see anything from ''public mmXp(id) ''


this is what i use in a menu
Quote:
client_cmd(id ,"messagemode cmdaddxp")
server_print("Bugs bugs bugs its raining bugs#2")


this is my messagemode functions
Quote:
}
public set_messagemode_cmds()
{
register_clcmd("say /setgoldcmd", "cmdaddxp")
register_clcmd("mmXpMain", "mmXp")
}
public cmdaddxp(id)
{
client_cmd(id, "messagemode mmXpMain")
}
public mmXp(id)
{
server_print("Bugs check#3")
new szTemp[64]
read_args(szTemp, charsmax(szTemp))
remove_quotes(szTemp);
new gold_amount = str_to_num(szTemp);
g_PlayerXp[SelectedPlayerIDD[id]][g_CurrentChar[SelectedPlayerIDD[id]]] += gold_amount;
client_print(SelectedPlayerIDD[id], print_chat, "Your XP has been increased by %d!",
gold_amount);
}

Last edited by Akka3223; 08-20-2019 at 11:09.
Akka3223 is offline
 


Thread Tools
Display Modes

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:30.


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