Help
I need help coding this, First time at AMXX *hides*
Code:
I know there is some stuff missing, but why am I getting errors with that stuff? |
Under the give_items function, put this
Code:
instead of Code:
You also need a register_concmd function in plugin_init() to call the give_items function with a function in your console. ;) |
Ok, I updated my code, Still get errors.
Code:
Thanks for the fast help. |
Post your errors.
|
Noob question, how do I post my errors?
|
Use the web compiler, compile the plugin, copy/paste->post the error messages that it outputs.
|
/home/users/amxmodx/tmp3/phpftgCmc.sma(12) : error 001: expected token: ")", but found "{"
/home/users/amxmodx/tmp3/phpftgCmc.sma(21) : warning 209: function "give_items" should return a value /home/users/amxmodx/tmp3/phpftgCmc.sma(25) : error 035: argument type mismatch (argument 3) |
Add "return PLUGIN_HANDLED" at the end of your give_items function.
And change 2 to 1 here: Code:
For a better understanding go here: http://ghw-amxx.com/images/args.gif |
Another error(s)...
Code:
|
I found one problem, One error now
Code:
/home/users/amxmodx/tmp3/phpeBNxUi.sma(11) : error 001: expected token: ")", but found "{"Here is my code Code:
|
| All times are GMT -4. The time now is 16:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.