Command Problem
#7

In that case don't include fixes.inc, paste this code above #include <YSI\y_ini> line
pawn Code:
stock fvalstr(dest[], value, bool:pack = false)
    {
        //credits to slice
        // "format" can't handle cellmin properly.
        static const
            sc_szCellmin[] = !"-2147483648";
        if (value == cellmin)
        {
            pack && strpack(dest, sc_szCellmin, 12) || strunpack(dest, sc_szCellmin, 12);
        }
        else
        {
            format(dest, 12, "%d", value),
            pack && strpack(dest, dest, 12);
        }
        return 0;
    }

#if defined _ALS_valstr
  #undef valstr
#else
#define _ALS_valstr
#endif
#define valstr fvalstr
Like This -
pawn Code:
#include <a_samp>//first this
    stock fvalstr(dest[], value, bool:pack = false)
    {
        //credits to slice
        // "format" can't handle cellmin properly.
        static const
            sc_szCellmin[] = !"-2147483648";
        if (value == cellmin)
        {
            pack && strpack(dest, sc_szCellmin, 12) || strunpack(dest, sc_szCellmin, 12);
        }
        else
        {
            format(dest, 12, "%d", value),
            pack && strpack(dest, dest, 12);
        }
        return 0;
    }

#if defined _ALS_valstr
  #undef valstr
#else
#define _ALS_valstr
#endif
#define valstr fvalstr

#include <YSI\y_ini>//Then This
//other includes here
Reply


Messages In This Thread
Command Problem - by arlindi - 17.02.2015, 17:49
Re: Command Problem - by arlindi - 17.02.2015, 18:27
Re: Command Problem - by Arieltador - 17.02.2015, 18:50
Re: Command Problem - by arlindi - 17.02.2015, 18:56
Re: Command Problem - by BroZeus - 18.02.2015, 14:22
Re: Command Problem - by arlindi - 18.02.2015, 15:31
Re: Command Problem - by BroZeus - 19.02.2015, 04:27

Forum Jump:


Users browsing this thread: 1 Guest(s)