Newbie Scripter - First Plugin - Need Help don't Laugh :)
I'm a first timer, and after studying up on the small language, I decided to write my first plugin in order to become better and gain more experience.
My first Plugin is desiged to stack a User upon the admin that sent the command. I haven't been able to test my plugin yet because of a compling error. (Line 38 ) Compiling Error 017 : Undefined Symbol "set_user_origin" I've read up on the error, and I have been unable to understand the problem. I've looked at other "Stack" Plugins and they haven't help much either. If someone could help me with this problem it would be very much appriciated. I apologize if my code is completely falty in the long run, I'm trying. Code:
|
No need to laugh. :)
Code:
Also, before the last } put: return PLUGIN_HANDLED -- Code:
(Sorry about editing like post like 10 times!) :P |
Thanks
*Bows to the Scripting God*
Permision to laugh granted Thanks very much for the extremly fast reply, amazing :) 6 minutes later thats some kind of god you must be. I like you already Vex: Your a very helpful guy, thanks. I had a feeling it might be a problem with the includes. Yea it was funny i saw the post constanly changing :) Can you help me understand these lines Code:
|
Scripting God? Ha! :lol:
Code:
Quote:
Code:
|
Yea sorry i got antsy, asking before i tried to figure it out.
I got it after like 2 seconds after i posted, sorry for wasting you time. It definatly compiles now, thanks. One more question. I had read an ealier post of yours that says to ignore the: Compile warming 217: loose intention. I was wondering if there is a way to fix this (beacuse my plugin has 3) or if it may cause problems if i dont fix it. |
It means you didn't make the proper indentations. Everything must be consistent. Hell, if you don't feel like indenting your code, stick it in the online-indenter (I recommend unchecking the box)!
I prefer using tabs, some people prefer using spaces. It's really just personal preference. |
Thanks ill try it out.
Also, can i keep this piece of code? or is it a worthless dumb :) Code:
|
Worthless indeed. :)
I replaced that with that other if() statement (checking if the user is connected/alive). |
Thanks for all your help. Complied Perfect, no errors intened.
Sorry to bother for one last time, but i need some for help figuring out these lines, i looked them up but im still troubled, also embarassed for being so nub :oops: Code:
I just dont understand the (id,level,cid) and the (id,level,cid,1). Sorry bout that |
Not sure how to explain it. :?
Code:
Quote:
|
| All times are GMT -4. The time now is 09:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.