Quote:
Originally Posted by timian
thanks Jelle this tut actually help me!
but i got a problem!
i try to úse some pcvars in public client_damage but my pcvars is in plugin_init and then when i try compile it it just say "pcvarWhy" is never used.
|
It is not defined because you have it in plugin_init. Make a new global "pcvarWhy":
PHP Code:
new pcvarWhy
public plugin_init()
{
pcvarWhy = register_cvar("Cvar here", "value here")
}
public client_damage()
{
//Now you can use pcvarWhy in this forward.
}
I explained it in one of the sections.
Quote:
Originally Posted by kanatzu
Isen't it better ( If you want to learn, not just ripp) put the pieces togheter so that you understand what you're doing?
Tutorial basicaly means " Learn-how-to". And posting a simple basic-hero wouldent learn people much.
And trough that you will experience much more details in the code.
Understand what the diffrent parts does.
That's my opinion!
|
Do not copy paste this if you want to learn from it. You should write it totally on your own. If you take the parts and just copy paste them together it would be a messy code.
__________________