What does public in code means?
What do I need to use of one of them:
PHP Code:
PHP Code:
|
Re: What does public in code means?
If you use set_task, the function it calls must be declared as public. If you are calling the function directly, it can be declared as public or private (not putting anything assumes private)
|
Re: What does public in code means?
"public" means that it is exposed to the host or in other words to other AMXX plugins so you can execute these public functions even from other plugins by using the callfunc_* natives
|
Re: What does public in code means?
Why doesn't it compile with set_task then?
Error: Argument type mismatch (argument 4). But if I replace get_pcvar with "x number" it works. And calling the function directly how I have it in the code doesn't do anything. |
Re: What does public in code means?
|
Re: What does public in code means?
And how can I set iFOV with set_task ?
|
Re: What does public in code means?
With a public function . . . I thought this was already told to you . . .
|
| All times are GMT -4. The time now is 11:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.