warning 219: local variable "Name" shadows a variable at a preceding level
#9

pawn Code:
COMMAND:makevip(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(APlayerData[playerid][PlayerLevel] >= 5)
        {
            new id, level, n[MAX_PLAYER_NAME], string[126];
            if(sscanf(params, "ud", id, level))
            return SendClientMessage(playerid, -1, "USAGE: /makevip [playerid] [level]");

            pInfo[id][vStatus] = level;

            format(string, sizeof(string), "%s has set your VIP level %d", n, level);
            SendClientMessage(id, -1, string);

            format(string, sizeof(string), "You have set %s VIP level to %d", playerid, level);
            SendClientMessage(playerid, -1, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)