Help me PLabel
#2

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;
}
Reply


Messages In This Thread
Help me PLabel - by ManGoe - 29.04.2015, 03:33
Re: Help me PLabel - by SickAttack - 29.04.2015, 04:07
Re: Help me PLabel - by ManGoe - 29.04.2015, 06:49

Forum Jump:


Users browsing this thread: 1 Guest(s)