/mask Problem.
#2

pawn Код:
command(mask, playerid, params[])
{
    new number = (100 + random(899)), string[128];
    masknumber[playerid] = number;
    if(Player[playerid][Masked] == 0)
    {
        if(Player[playerid][Level] >= 6)
        {
            for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, false);
            format(label[playerid], sizeof(label[playerid]), "Stranger_%d", masknumber[playerid]);
            Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 3.0);
            ApplyAnimation(playerid, "goggles", "goggles_put_on", 4.1, 0, 1, 1, 0, 1, 1);
            Player[playerid][Masked] = 1;
            format(string, sizeof(string), "* Stranger_%d puts on their mask *", masknumber[playerid]);
            NearByMessage(playerid, PINK, string);
        }
        else return SendClientMessage(playerid, GREY, "You must be level 6+ to use a Mask.");
    }
    else return SendClientMessage(playerid, GREY, "You are already masked.");
    return 1;
}
Try this, why were you formatting "string" when you did nothing with that formatted string and then just formatted it again. It looked like the label[playerid] wasn't formatted from what I saw.

TIP: use [.pawn]pawnscripthere[/.pawn] to show it in the pawn code (remove the periods). This is easier for us scripters and helpers.
Reply


Messages In This Thread
/mask Problem. - by Henry_Martinez - 27.06.2012, 01:35
Re: /mask Problem. - by Kindred - 27.06.2012, 01:40
Re: /mask Problem. - by Henry_Martinez - 27.06.2012, 01:45
Re: /mask Problem. - by [A]ndrei - 27.06.2012, 01:47
Re: /mask Problem. - by Kindred - 27.06.2012, 01:52

Forum Jump:


Users browsing this thread: 2 Guest(s)