07.08.2008, 10:28
Today I have found that
crashes pawno, so I came up with this:
Now you can return your string like this:
return csReturn("Hi");
and it won't give you an error.
UPDATE:
Or use this:
on top of your script to make you able to return strings like this:
Код:
return "hi";
Constant string return.
pawn Код:
stock csReturn(string[])
{
return string;
}
return csReturn("Hi");
and it won't give you an error.
UPDATE:
Or use this:
pawn Код:
#define Returns_%1; new tstr[128]; tstr=%1; return tstr;
pawn Код:
Returns_"Hi";