12.02.2015, 01:42
Quote:
Okay here's my dialog:
For example if my input is "FFFF00" the HEX will become FFFFFF00 without the 0x at the beginning and the color of the object wouldn't change either. pawn Код:
|
If you use sscanf you don't need isnull, if you still want to use it you need to use && (and) not || (or)
pawn Код:
if(response)
{
new hex;
if(sscanf(inputtext, "h", hex))
return RedNoticeEx(playerid, "Invalid HEX color."), ShowTextureColorChange(playerid, FMatSlot[playerid]);
new matmodel, txdname[45], texturename[45], color;
//some as before
}
http://pastebin.com/JcX7qFGd
macro would be SCM1, use a version with emit like SCM2, SCM3 or SM4 (best) \/
http://forum.sa-mp.com/showthread.ph...88#post2857588