SA-MP Forums Archive
Int To Hex Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Int To Hex Problem (/showthread.php?tid=472726)



Int To Hex Problem - MA_proking - 30.10.2013

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


Re: Int To Hex Problem - Konstantinos - 30.10.2013

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


Re: Int To Hex Problem - PaulDinam - 30.10.2013

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