Help needed for my plugin!
I made a small plugin just to start learning small but I come against some problems with it, how can i check if pa_lol is set to 0 and then stop the message from appearing whenever i say lol ??
Here's the code: Code:
|
hmm.. im not sure what u want but i think that will do the job
Code:
you need to add {} after if.. to include all the commands after it inside the if... (like in a function) |
I'm just starting to learn but do you mean like this?
Code:
|
no look
treat the Code:
in a function its: Code:
you also need begin and end to the if thing... and also need to return PLUGIN_HANDLED outside the "if". so ur function should look like that Code:
NOTE: IF has the same structure of a FUNCTION |
Oh now I understand. Thanks :)
|
np :)
|
Code:
Code:
|
Isn't it the same except for the extra spaces?
|
yes. :lol::P
|
The second is properly idented, the first is not.
This is what happens when you don't ident right: Code:
Warning: Loose Indentation |
| All times are GMT -4. The time now is 23:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.