help with adding
Hey can anyone help me add
zp_cs_set_user_money(id, zp_cs_get_user_money(id) + Values[value]); zp_set_user_exp(id, zp_get_user_exp(id) + Exps[exp]); in 1 line? and edit the client print msg client_print(id, print_chat, "[ZP] You have just received %d $ and %d exp, try again after map change!", Values[value]); PHP Code:
|
Re: help with adding
I don't understand what you mean by that.
|
Re: help with adding
the plugin dosent work and those things are causing it, so if someone can fix it, it would mean alot
|
Re: help with adding
Quote:
Code:
Show "_get_money" function Edit: if the plugin already has these native or include then no one can help you without see the full code |
Re: help with adding
sorry the natives weren't meant to be there
PHP Code:
[AMXX] Run time error 19 (plugin "zp_get.amxx") - debug not enabled! L 12/28/2021 - 15:05:33: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 12/28/2021 - 15:05:33: [AMXX] Run time error -1 (plugin "zp_get.amxx") - debug not enabled! L 12/28/2021 - 15:05:33: An error occurred in plugin_natives. This is dangerous! |
Re: help with adding
Enable debug and back with message logs or show the wrong in which line
|
Re: help with adding
Try this
zp_cs_set_user_money(id, zp_cs_get_user_money(id) + Values[random_num(0, sizeof(Values) - 1)]) |
Re: help with adding
@itoxicreal; the wrong was in the line of client_print, there are two values, "Values[value] & Exps[exp]" with just one field %d also you didn't use register_plugin !
PHP Code:
PHP Code:
|
Re: help with adding
Everything worked out fine, there was just a issue with the Exp giving 0 but i fixed it, I also added cromchat if anyone wanted here is the final version
PHP Code:
|
Re: help with adding
Quote:
|
| All times are GMT -4. The time now is 11:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.