Raised This Month: $ Target: $400
 0% 

#define string in string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 01-29-2010 , 19:48   Re: #define string in string
Reply With Quote #13

You're saying it's possible to do:

Code:
String:ReturnString()
{
    return "Hello";
}

SomeFunc()
{
    PrintToServer("%s", ReturnString());

    // or even

    decl String:mystr[32];
    mystr = ReturnString();
}

If that's possible then I have a lot of work to do...


EDIT: I don't think I've ever seen any plugin do this, but it amazingly works. This should be made known, because I don't think people know about this. Well that or I've just been oblivious to it for the past couple years.

EDIT2: This actually doesn't help us.

Code:
public String:operator+(String:oper1[], String:oper2[])
{
    StrCat(oper1, 512, oper2);
    return oper1[0];
}
This fires when using + to concatenate but it's not working at all.
__________________

Last edited by Greyscale; 01-29-2010 at 20:12.
Greyscale is offline
 



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 22:05.


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