Name Lengh Problem!
#6

In fact, use MAX_PLAYER_NAME + 1 for loginname.

Now, first of all, when you are using string without any parameters inside, then don't use format.

pawn Код:
if (gPlayerAccount[playerid] != 0)
{
    new
        loginstring[128],
        loginname[MAX_PLAYER_NAME + 1];

    GetPlayerName(playerid,loginname,sizeof(loginname));
    TextDrawShowForPlayer(playerid, TextdrawConnect2);
    TextDrawShowForPlayer(playerid, TextdrawConnect3);
    format(loginstring,sizeof(loginstring),"{FFFFFF}Salut, {2F991A}%s {FFFFFF}Ai deja un cont pe Comunitatea Union-Zone!",loginname);
    SendClientMessage(playerid, COLOR_WHITE, loginstring);
    ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"Login","Acest cont este inregistrat.Te poti loga!","Login","Exit");
}
And the problem is somewhere else, not here.
Reply


Messages In This Thread
Name Lengh Problem! - by Akcent_Voltaj - 19.10.2013, 13:43
Re: Name Lengh Problem! - by DanishHaq - 19.10.2013, 13:46
Re: Name Lengh Problem! - by Misiur - 19.10.2013, 13:46
Re: Name Lengh Problem! - by Akcent_Voltaj - 19.10.2013, 13:49
Re: Name Lengh Problem! - by popben - 19.10.2013, 14:31
Re: Name Lengh Problem! - by Misiur - 19.10.2013, 14:35
Re: Name Lengh Problem! - by Akcent_Voltaj - 19.10.2013, 14:46
Re: Name Lengh Problem! - by Akcent_Voltaj - 19.10.2013, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)