Error help.
#1

Error;

(12615) : error 047: array sizes do not match, or destination array is too small.

Line;

pawn Code:
Player[playerid][Appearance] = appearance;
Rest of command;

pawn Code:
command(appearance, playerid, params[])
{
    new appearance[128];
    if(sscanf(params, "s[128]", appearance)) return SendClientMessage(playerid, GREY, "Server: /appearance [description]");
    else
    {
        new string[128];
        SendClientMessage(playerid, GREY, "You have set your appearance to:");
        format(string, sizeof(string), "%s", appearance);
        SendClientMessage(playerid, WHITE, string);
        Player[playerid][Appearance] = appearance;
    }
    return 1;
}
Please help me.
Reply


Messages In This Thread
Error help. - by iGetty - 25.08.2011, 05:02
Re: Error help. - by Kar - 25.08.2011, 05:13
Re: Error help. - by =WoR=Varth - 25.08.2011, 05:14
Re: Error help. - by Horrible - 25.08.2011, 05:16
Re: Error help. - by iGetty - 25.08.2011, 05:17

Forum Jump:


Users browsing this thread: 1 Guest(s)