Question on concating strings...
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
timbecile

is there a way to concat several strings together? I've been trying this, but it doesn't compile...

void DoPrint( string print_stringA, string print_stringB )
{
string s;
s = print_stringA + print_stringB;
PrintCenter( ImageWidth(v1_vclayer)/2, ImageHeight(v1_vclayer)/2, v1_vclayer, v1rpg_SmallFont, s );
}

Posted on 2004-11-04 08:20:34

blues_zodiakos

Odd... That looks like it would work. :/ What error is the compiler giving you? My demo Forever Midnight TA in the games section does a ton of this... but it's kinda old now.

Posted on 2004-11-04 08:30:51

timbecile

Weird, it works now. The only change I did was to add

HookRetrace('V1RPG_RenderFunc');

into the system.vc

Posted on 2004-11-04 08:36:33

mcgrue

That's because anything involving the 'vc layer' requires that V1RPG_RenderFunc() be HookRetraced. The vc layer is a handy-dandy little concept, but is completly implemented within the system vc code of Sully... namely in the v1_rpg.vc file.

Posted on 2004-11-04 08:43:11


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.