Errors
Hi.
I have problem with my script. I got many errors, but I don't understand why. errors: Code:
error 017: undefined symbol "id"Code:
public sayname() |
Re: Errors
You need to pass the id to this function from wherever you're calling it at.
PHP Code:
|
Re: Errors
OK, thanks. Now it works, but I've warning: loose indentation.
Before I posted this, I searched about the warning. There were many topics about this, but I still don't understand :D In one topic there were something about if function and the { }, in another topic there were something about free spaces etc.Please, can you explain me about that warning and how can I remove it? Edit: I tested the plugin. It works, but I don't like that, where is printed the result. For example: Mynick <-- this is the result, printed by my plugin Mynick: /command Why the result is printed before my nick? |
Re: Errors
Is that your full script?
If it is, you're missing plugin_init() |
Re: Errors
Nope. That isnt full script. But thats the piece of script where is the problem. There is pugin_init(), includes, connecting to mysql server etc. All is ok when i connected to mysql server. There is no problem. Problem begins in the given piece of code.
|
| All times are GMT -4. The time now is 01:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.