Little Problem
#8

Thank you Vince but i got a problem, if i do /setocolor 1 0xFF0000FF on the dini file it shows Color=48
pawn Код:
CMD:setocolor(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    if(sscanf(params,"is",orgid,ocolor)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /setocolor [orgid] [samp hex color]");
    format(oFile,sizeof(oFile),"DynamicOrgs/%i.ini",orgid);
    {
        if(!dini_Exists(oFile)) return SendClientMessage(playerid,red,"ERROR: That Organization Id is INVALID!");
        dini_IntSet(oFile,"Color",ocolor);
    }
    return 1;
}
Reply


Messages In This Thread
Little Problem - by Tanush123 - 31.08.2011, 23:18
Re: Little Problem - by =WoR=G4M3Ov3r - 31.08.2011, 23:23
Re: Little Problem - by IceCube! - 31.08.2011, 23:24
Re: Little Problem - by Davz*|*Criss - 31.08.2011, 23:26
Re: Little Problem - by =WoR=G4M3Ov3r - 31.08.2011, 23:31
Re: Little Problem - by Tanush123 - 31.08.2011, 23:33
Re: Little Problem - by Vince - 31.08.2011, 23:38
Re: Little Problem - by Tanush123 - 31.08.2011, 23:50

Forum Jump:


Users browsing this thread: 1 Guest(s)