Stomach Ache
This is my first plugin, I'm just starting it, it is my first plugin the point of this plugin is to kill only in the stomach (im doing this coz its easy) this is what ive got, tell me if Im on the right track plz PHP Code:
btw:plz gimme karma im working a lot learning scrpting, i deserver it ty m4a1 for help |
Re: Stomach Ache
2 things:
1) "HIT_STOMACH 3" needs to be the name of a public function. Meaning, you need to create another procedure called HIT_STOMACH 3. Infact, that can't even be done. HIT_STOMACH 3 needs to be one phrase (this is the name of the function, and name doesn't matter - you create it). I'll post an example of how it should work. You will also want to consider #include <amxmisc>, as it contains some good stuff (like checking if the user has ADMIN_SLAY to use the command) And getting back to the HIT_STOMACH 3 deal, look what I put in place of that: PHP Code:
PHP Code:
That means that the command "amx_stomachache" will do the public function called "setStomachAche" PHP Code:
|
Re: Stomach Ache
u r starting to be my best Amx Friend xD
ty very much +karma as possible |
Re: Stomach Ache
but if u need to put the function.. why is the function StomachAche if it doesnt even exist?
|
Re: Stomach Ache
What do you mean?
|
Re: Stomach Ache
you arent supposed to put the function u r using?
|
Re: Stomach Ache
Take a look at this line:
PHP Code:
Now look at this: PHP Code:
|
Re: Stomach Ache
ok
|
| All times are GMT -4. The time now is 16:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.