Help with Strcat
#1

i have problem with strcat it only shows me 3 lines in this command

pawn Код:
CMD:credits(playerid, params[])
{
    new string[128];
    strcat(string,"Gamemode Creator: GAMER_PS2 & [SP]Mr.Kakashi[WP]\n");
    strcat(string,"Command Scripter: [SP]Mr.Kakashi[WP]\n");
    strcat(string,"Moderators: GAMER_PS2, [SP]Mr.Kakashi[WP]\n");
//====this line will not display ingame please help me ========================//
    strcat(string,"Testers: GAMER_PS2, [SP]Mr.Kakashi[WP] DeEp\n");
    strcat(string,"Gamemode Version 1.0 Beta");
    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Credits:",string, "OK","");
    return 1;
}
then in these command it does not show the Not Available commands:

pawn Код:
CMD:cmds(playerid, params[])
{
    new string[128];
    strcat(string,"Available Commands:\n\n");
    strcat(string,"/v /setcolor /spawn /credits /commands\n");
    strcat(string,"/setskin /kill /suicide /getinterior /playersonline\n");
    strcat(string,"/me /pm /nopm\n\n");
//====this line will not display ingame please help me ========================//
    strcat(string,"Not Ready to use yet in this version:\n");
    strcat(string,"/duel /acceptduel");
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Available Commands:",string, "OK","");
    return 1;
}
please help me
Reply
#2

new string[256];

128 is not enough
Reply
#3

thanks bro
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)