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 , 18:11   Re: #define string in string
Reply With Quote #10

Quote:
Originally Posted by rhelgeby View Post
Can't we overload the + operator for strings ourself then?

Like it's done with floats.
Code:
stock Float:operator+(Float:oper1, oper2)
{
    return FloatAdd(oper1, float(oper2));			/* "+" is commutative */
}
Maybe it isn't that easy to do with arrays.
I had no idea overloading was possible in Pawn.

But the problem is it takes the return value. Pawn can't return strings.

berni: Did you end up using Format() to work around this?
__________________
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