Placeholder for boolean data type in format-function
#2

I don't know if theres another better way available but i wrote a quick function that might work. (not tested)
pawn Код:
ReturnBoolString(value)
{
    if(value > 0)
    {
        new str[5] = {"true"};
        return str;
    }
    else
    {
        new str[6] = {"false"};
        return str;
    }
}
You could use that in format with %s specifier.
Reply


Messages In This Thread
Placeholder for boolean data type in format-function - by DeathOnaStick - 24.12.2010, 13:01
Re: Placeholder for boolean data type in format-function - by iggy1 - 24.12.2010, 13:44

Forum Jump:


Users browsing this thread: 2 Guest(s)