a wee bit o help
ok, right now i have these two lines of code (they do not go together)
Code:
Code:
at the moment, they dont print in the hlds console... can someone fix em so they do? i dont know where to put the console_print line... |
just change:
print_chat to: print_console in both of them... |
but will it still show it in chat?
|
oh, ok, do this:
Code:
|
<3 thank you
|
1 Attachment(s)
hmm... that didnt work... ok, heres the plugin that i want to make do that... can anyone edit it so that OOC shows up in the console? that would be great if you could do it for regular chat too...
THIS IS NOT MY PLUGIN, THIS IS AVALANCHES (now they cant yell at me :p) |
Code:
|
1 Attachment(s)
WOW thats bad coding.
You see, there are four principles all coders should follow: 1. KISS Keep it simple stupid! Use the easiest solution. 2. Encapsulation Everything should do its thing, and only its thing. Stuff should only have enough knowledge to do its job. This means deligation (telling other stuff to do your work for you) 3. Readability You want to make it readable. This means no OVER COMMENTING. You dont even need comments if your code is readable enough. Make good variables for god sake! Oh and comment when nessasary. 4. Extendability Make your coding easy to extend. This means making it so, instead of re-writing everything, or rewriting large chunks, you can simply add a few lines, or tack in the new code. |
No need to comment on an old plugin that I have abondoned and beg people not to use anymore anyway, Suzuka.
|
| All times are GMT -4. The time now is 14:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.