Simple Problem - Admin Command - Please Help
#1

Why is not this not un locking the business id i put in where i do the command


pawn Код:
command(alockbusiness, playerid, params[])
{
    new businessid[45], string[12];
    if(Player[playerid][AdminLevel] >= 1)
    if(sscanf(params, "d", businessid)) return SendClientMessage(playerid, RED, "/alockbusiness [business ID]");
    format(string, sizeof(string), "Businesses/Business_%d.ini", businessid);
    if(fexist(string))
    {
        Businesses[playerid][bLockStatus] = 0;
    }
    return 1;
}

Thank You


Please Help Me Please
Reply
#2

Thank You

Im trying to make it so if your a admin of any business( does not need to be owned by you ) you can un lock it


Please Help Me Please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)