![]() |
help with onwall
NPC Code: the scripts works fine, i just need some help with the onwall for playerdir 1 (to the left) |
no offense but the format is like unreadable, format your scripts like this
if(stuff){ commands here; } |
Everyone has their own preference in formating. If you wanna be anal retentative (sp?) it should acually be like
NPC Code: I acualy like this way more, since you can see the acual code blocks. but it is faster to type it in one line. Which is how most people do it. Duno why I posted this. But their are many ways to format. I'm more concerned with his lack of commenting. Commenting will help you and everyone else emmensly (sp?). Telling yourself and other what you are doing in the code, what the variables do and stuff. So comming back to your code weeks/months later, doesn't confuse you. |
i use to formatlike that, but I changed when my friends wanted me to use the other way for some reason, don't know why, as long as its not like all on one line I try not to complain too much
|
My format.
NPC Code: omg wow my screen just flashed blue |
that code was pretty unreadable Xx
dont include every command on one line please but you could use onwall2 if going to use NPC Server :) - to you CheeTos |
any experienced scripter would be able to read that with no problem...or maybe im just special :D
anyway, here: NPC Code: there, gosh that's so much longer... well, anyway, here, now it's readable, please help, all i need is some help with onwall, not too much to ask...i'm just no good with it...:( and, by the way, it's not for an npc server, but how do you use onwall2, for future reference... |
All times are GMT +2. The time now is 10:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.