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);
}
|