Raised This Month: $ Target: $400
 0% 

[SOLVED] Menu color problems with latest compiler


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 07-31-2004 , 13:52   [SOLVED] Menu color problems with latest compiler
Reply With Quote #1

The latest version of the small compiler (2.6) is interperating my menu color commands as escape sequences, and is giving me errors a' plenty.

Does anyone know any ways of getting around this?

Example:
Code:
new szMenu[64]; format( szMenu, 63, "\yYellow, \rRed, \dGrey, \wWhite" );
This gives me 4 compiling errors, like this:
Code:
error 027: invalid character constant
Quote:
Originally Posted by small documentation
027 invalid character constant

One likely cause for this error is the occurrence of an unknown escape
sequence, like "\x".
Putting multiple characters between single quotes,
as in 'abc' also issues this error message. A third cause for this error
is a situation where a character constant was expected, but none (or a
non-character expression) were provided.
I would really love some help on this.
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-31-2004 , 13:58  
Reply With Quote #2

^\y
You basically need to escape the \

Does that really color a menu though?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 07-31-2004 , 14:08  
Reply With Quote #3

I've tried it an still no luck.. any other suggestions?
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 07-31-2004 , 14:19  
Reply With Quote #4

SOLVED


Code:
#pragma ctrlchar '^'

This sets the control character back to ^ like it was in previous versions of the compiler.
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
BAILOPAN
Join Date: Jan 2004
Old 07-31-2004 , 15:06  
Reply With Quote #5

remember that 0.20 has a new compiler. 2.60 is not compiled for amx mod x specific settings and you'd need to do this:
sc.exe -^ -C-
__________________
egg
BAILOPAN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode