error 047: array sizes do not match, or destination array is too small
#4

I'll edit with results.
EDIT:
I only see the first letter I write.
I'll give you everything related to the variable.

Saving:
pawn Код:
format(query, sizeof(query), "UPDATE `users` SET `forum` = %s WHERE `name` = '%s'",
        PlayerInfo[playerid][pForum],
        GetName(playerid));
        mysql_function_query(dbHandle, query, false, "", "");
Loading:
pawn Код:
cache_get_row(0, 97, PlayerInfo[playerid][pForum], dbHandle, 24);
CMD:
pawn Код:
CMD:forumname(playerid, params[])
{
    new forumname[24], fstring[126],s_forumname[24];
    if(sscanf(params, "s[24]", forumname)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /forumname [name]");
    format(s_forumname, 24, "%s", forumname);
    format(PlayerInfo[playerid][pForum], 24, "%s", s_forumname);
    format(fstring, sizeof(fstring), "You have set your forum name to: %s", s_forumname);
    SCM(playerid, COLOR_YELLOW, fstring);
    return 1;
}
Reply


Messages In This Thread
error 047: array sizes do not match, or destination array is too small - by Darnell - 30.07.2013, 09:02
Re: error 047: array sizes do not match, or destination array is too small - by antonio112 - 30.07.2013, 09:35
Re: error 047: array sizes do not match, or destination array is too small - by Konstantinos - 30.07.2013, 09:36
Re: error 047: array sizes do not match, or destination array is too small - by Darnell - 30.07.2013, 11:30

Forum Jump:


Users browsing this thread: