31.08.2011, 23:33
FOR THE SECOND POST
And i need dini_Get because im making a dynamic org so i made /setocolor (set organization color)
pawn Код:
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\erclan.pwn(9449) : error 033: array must be indexed (variable "-unknown-")
pawn Код:
CMD:setocolor(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
if(sscanf(params,"ii",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;
}