Change
PHP Code:
new xpcost[1] = (10000)
to
PHP Code:
new xpcost = 10000
And.
PHP Code:
public cmd_buyxp(id) { new usermoney = cs_get_user_money(id) // new username = get_user_name(id) if (usermoney<xpcost){ client_print(id,print_center,"Your too poor for this. It's 10000!") return PLUGIN_HANDLED } else if cs_set_user_money(id,usermoney-xpcost,1) server_cmd ("pm_givexp ^"name^" @1", 30") return PLUGIN_HANDLED }
You need to put brackets for the second if condition.