SA-MP Forums Archive
Help Me[REP+] - 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: Help Me[REP+] (/showthread.php?tid=589107)



Help Me[REP+] - dh240473 - 15.09.2015

Guys I'm Making 3dtextlabel System With Dini Why It Keep Say Label Is Not Exist With This Command Even It Is Exist?
Quote:

CMD:rlabels(playerid,params[])
{
if(unformat(params, "i",params)) return SendClientMessage(playerid, 0xFF0000FF, "{FF0000}USAGE:/rlabels [ID]");
if(IsPlayerAdmin(playerid))
{
new string[64],file[128];
for(new i; i < MAX_LABELS; i++)
{
format(file,sizeof(file),Label_Save,i);
if(!fexist(file))
{
LabelID = i;
break;
}
}
if(dini_Exists(file))
{
dini_Remove(file);
format(string,sizeof(string),"Label "lyellow2"%i "lgreen"removed!", LabelID);
SendClientMessage(playerid,lightgreen,string);
}
else if(!dini_Exists(file))
{
SendClientMessage(playerid, lightgreen, ""lred"Label Id Is Not Exist!");
}
}
else return 0;
return 1;
}