24.03.2012, 01:05
I don't understand why you'd need to return a string in pawn when you can just pass the string and return 1 or 0 depending on if it was changed or not
Code:
stock something(text[],len) { if(variable) { format(text,len,"text%d",1); return 1; } return 0; } if(something(string,128)) { print(string); } else { print("failed something"); }