29.04.2015, 04:07
You're not using those two variables, so there's no need to create them. You already have the function "frenametextfile" defined, it's now named "frenametextfileex".
pawn Код:
CMD:label(playerid, params[])
{
if(PlayerXP[playerid] < 6000) return SCM(playerid, COLOR_WHITE, "{FF0000}[ERROR]{FFFFFF} You must have at least 6,000XP to use this command.");
return 1;
}
stock frenametextfileex(oldname[],newname[])
{
if (!fexist(oldname)) return false;
fremove(newname);
if (!fcopytextfile(oldname,newname)) return false;
fremove(oldname);
return true;
}