help strcat
#2

A string for the final format and another for the local format, perhaps that is the mistake, even-i have my doubts because the format you've done in the end, this should work.

pawn Код:
CMD:credits(playerid, params[])
{
    new string[55], format[39], pName[24];
    GetPlayerName(playerid, pName, 24);
    format(format, sizeof(format), "***your name %s.", pName);
   
    strcat(string, "Hey\n");
    strcat(string, "\n");
    strcat(string, "\n");
    strcat(string, format);
    ShowPlayerDialog(playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX, "{F81414}Credits", string, "Ok", "");
    PlayerPlaySound(playerid, 1183, 0, 0, 0);
    return true;
}
Reply


Messages In This Thread
help strcat - by AgusZ - 13.01.2015, 09:55
Respuesta: help strcat - by JuanStone - 13.01.2015, 10:05
Re: help strcat - by Threshold - 13.01.2015, 10:34
Re: help strcat - by CalvinC - 13.01.2015, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)