Quote:
Originally Posted by rhelgeby
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?
__________________