Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Styling errors. (https://forums.graalonline.com/forums/showthread.php?t=78815)

bscharff 02-22-2008 06:45 PM

Styling errors.
 
Basically, when I script and don't feel like hand-styling it myself, I'll use RC's /style.

But there's two problems; the for () and @= don't style properly.

for () example:

BEFORE
PHP Code:

function onCreated(){
  for (
temp.foothis.foo){
    
doStuff(temp.foo);
  }


AFTER
PHP Code:

function onCreated(){
for (
temp.foothis.foo){
    
doStuff(temp.foo);
  }



@= example:

BEFORE
PHP Code:

function onCreated(){
  
temp.foo @= this.foo;


AFTER
PHP Code:

function onCreated(){
  
temp.foo @ = this.foo;



Chompy 02-22-2008 07:00 PM

Err, those can easily by using your backspace button once, and your tab button once..

Quote:

Originally Posted by bscharff (Post 1376211)
when I script and don't feel like hand-styling it myself

no excuse really, if you ask me.. :p


The only problem I see with this is the "@ =" because that gives an unexpected token error..

cbk1994 02-22-2008 07:06 PM

Bloo, you never hand-style, what are you talking about? x.x

Codein 02-22-2008 07:23 PM

That's his point :/ Aahhh, hand-styling comes as an instinct when I code in anything.

Chompy 02-22-2008 07:44 PM

Quote:

Originally Posted by Codein (Post 1376219)
Aahhh, hand-styling comes as an instinct when I code in anything.

same here.. :o

cbk1994 02-22-2008 10:01 PM

Quote:

Originally Posted by Chompy (Post 1376224)
same here.. :o

Yeah, once you start you never go back.
Kind of like switching to a Mac.

Codein 02-22-2008 11:20 PM

Quote:

Originally Posted by cbkbud (Post 1376242)
Yeah, once you start you never go back.
Kind of like switching to a Mac.

Or maybe even:

openSUSE Linux ;D

Inverness 02-23-2008 12:56 AM

Well stop using /style and do it on your own like the big kids.

coreys 02-23-2008 02:45 AM

Quote:

Originally Posted by Inverness (Post 1376266)
Well stop using /style and do it on your own like the big kids.

* Inverness casts spell of truth.

Twinny 02-23-2008 03:08 AM

Quote:

Originally Posted by Inverness (Post 1376266)
Well stop using /style and do it on your own like the big kids.

Tried to rep but already given you one recently apparently.....stupid rep system :(

bscharff 02-26-2008 04:38 AM

Whoopee... I'm 14, I consider myself mentally like a "big kid," however much y'all wish to disagree about it.
I don't care at all how old y'all are. I don't go by the hierarchical age-respect level nonsense.

and Chris, I hand-style on small scripts, not larger ones.

coreys 02-26-2008 06:26 AM

Quote:

Originally Posted by bscharff (Post 1376625)
Whoopee... I'm 14, I consider myself mentally like a "big kid," however much y'all wish to disagree about it.
I don't care at all how old y'all are. I don't go by the hierarchical age-respect level nonsense.

Apparently you aren't familiar with metaphors, which leads me to believe that you are, in fact, not very old, as anyone 14 years old would know what a metaphor is.

Admins 02-26-2008 03:35 PM

Ok fixed both "@=" and "for ( : )", will work fine with the next npcserver update.

cbk1994 02-26-2008 10:55 PM

Quote:

Originally Posted by Stefan (Post 1376652)
Ok fixed both "@=" and "for ( : )", will work fine with the next npcserver update.

>_<

Should have just made them learn to hand-style.

@Bloo: Why would you not style large scripts? It takes one push of the tab key ...

If you'd like to argue how nice your code is, I'll post your car script. I have permission from Ork, actually.

Twinny 02-26-2008 11:24 PM

Quote:

Originally Posted by cbkbud (Post 1376683)
If you'd like to argue how nice your code is, I'll post your car script. I have permission from Ork, actually.

BAM!

Inverness 02-27-2008 11:17 AM

Quote:

Originally Posted by bscharff (Post 1376625)
Whoopee... I'm 14, I consider myself mentally like a "big kid," however much y'all wish to disagree about it.
I don't care at all how old y'all are. I don't go by the hierarchical age-respect level nonsense.

When I said "big kids" I meant the experienced scripters who do their own styling so it matches their personal preference.


All times are GMT +2. The time now is 07:22 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.