Int To Hex Problem
#1

pawn Код:
GangZoneShowForPlayer(playerid, ZoneID[i], IntToHex(20));
pawn Код:
stock IntToHex(int)
{
    new
        str[15];
    format(str, sizeof(str), "%x", int);
    return str;
}
Errors

Код:
C:\Documents and Settings\TDM - Server\gamemodes\gm.pwn(589) : error 035: argument type mismatch (argument 3)
Please help with this
Reply
#2

Hex is number as well and you return a string for it.
Reply
#3

making it colour
pawn Код:
format(str, sizeof (str), "{%06x}", n >>> 8);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)