In response to PirateHead
PirateHead wrote:
Rean wrote:
AZ0123 wrote:
NO! Don't put usr in procs! BAD CODER! NO COOKIE!
I know, im just so used to writing usr V.V

A solution:
Write yourself a little program in VB that tracks your keystrokes and makes a noise every time you type "usr". That'll help you kick the habit by giving you a reminder, so at least you're aware of when you're using it. When I started learning Scheme, I did that for "//" because I always wanted to type comments using // instead of ;; which Scheme recognises. It really works!


Sounds great, but can you make it so it replaces usr with src? Lol, then I wont have to worry about writing usr ^^
In response to Rean
Rean wrote:
Elation wrote:
Switching boolean vars with != is a very good idea- it saves you from doing all those if() statements in the snippet you wrote before.

Wait, i heard of boolean before, i just cant seem to remember what it is right now >_>

if(squirl)//Checking for TRUE, 1, etc.

is alot better than
if(squirl==1)//In most cases.
In response to Rean
That won't work because you misplaced a } in that code, but there is no reason to use src.density=!src.density because we have already checked the density, therefore, it makes no sense to do that. However, if you were simply toggling something, it would make excellent sense to do that. =)

However it may still work if you take out the misplaced }, if you don't add a check for null density, you can end up with a player of null density if he executes the verb twice.
In response to Rean
That would be stupid. There are instances where it is appropriate to use usr instead of src, and there are instances where it is appropriate to do the opposite.

Just learn to use src whenever applicable for your desire. That's helped me a lot. I never usr abuse because of that.
In response to Elation
Not, switching with =! is a lot better. You can't switch with !=.
In response to Flame Sage
TRUE is 1.
In response to CaptFalcon33035
CaptFalcon33035 wrote:
That would be stupid. There are instances where it is appropriate to use usr instead of src, and there are instances where it is appropriate to do the opposite.

Just learn to use src whenever applicable for your desire. That's helped me a lot. I never usr abuse because of that.

Whoa, It is stupid, I was half awake when I posted that, what was I thinking? v_v
In response to CaptFalcon33035
CaptFalcon33035 wrote:
That won't work because you misplaced a } in that code, but there is no reason to use src.density=!src.density because we have already checked the density, therefore, it makes no sense to do that. However, if you were simply toggling something, it would make excellent sense to do that. =)

However it may still work if you take out the misplaced }, if you don't add a check for null density, you can end up with a player of null density if he executes the verb twice.


Yea, i was barely awake when I wrote that, I was awake for 4 days straight, but now that im thinking clearly, myne wouldnt work.

And thanks FlameSage, I remember it now ^_^ and Falcon, please 'reply with quote'; I have no idea what your talking about half the time if you just make a post saying: "That wont work..." and so forth.
In response to Rean
Boolean variables are variables that can only ever be 1 or 0. 1 representing true and 0 representing false.
In response to DeathAwaitsU
DeathAwaitsU wrote:
Boolean variables are variables that can only ever be 1 or 0. 1 representing true and 0 representing false.


Yup, FlameSage reminded me, but thanks for the clarification ^_^
Page: 1 2