WARNING!! Serious revamp IS LIVE!!

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Sat Oct 04, 2003 8:17 pm

/echo "@test(1)"
- Plazmic

MattHensley
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat Oct 04, 2003 7:18 pm

Post by MattHensley » Sat Oct 04, 2003 10:33 pm

that was a typo in my post, I've done

/echo "@test(1)"

and it actually echo's @test(1) with the @ symbol and all
-MattHensley

Dogvomit
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sun Oct 05, 2003 12:22 am

Post by Dogvomit » Sun Oct 05, 2003 12:25 am

/echo @test(1)

MattHensley
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat Oct 04, 2003 7:18 pm

Post by MattHensley » Sun Oct 05, 2003 5:39 am

okay so I found the problem, I was actually using an underscore in my array which I neglected to post in my example.. bad programming habit! for example:

/varset test array

works but

/varset array_test array

doesn't, so I guess no hungarian notation for me :(

*edit*

ugh I just realized you can't have an underscore in vars either and I just converted about 1000 lines of code doing so... search and replace time
-MattHensley

Ohmz
Developer
Developer
Posts: 97
Joined: Tue Feb 04, 2003 12:54 pm

I like underscores too

Post by Ohmz » Sun Oct 05, 2003 1:34 pm

Code: Select all

// ***************************************************************************
// Function:    GetArg
// Description: Returns a pointer to the current argument in szDest
// ***************************************************************************
PCHAR GetArg(PCHAR szDest, PCHAR szSrc, DWORD dwNumber, BOOL LeaveQuotes, BOOL ToParen, BOOL CSV, CHAR Separator, BOOL AnyNonAlphaNum)

...

(szTemp[i]>='a' && szTemp[i]<='z') ||

TO:

(szTemp[i]>='a' && szTemp[i]<='z') || (szTemp[i]=='_') ||

...
I think alot of people use underscores, may want to add this to the public distro.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Sun Oct 05, 2003 4:20 pm

Yeah, I only used alphanumeric for variable names... adding underscore is a good idea.
- Plazmic