Help with Strcat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with Strcat (
/showthread.php?tid=302259)
Help with Strcat -
GAMER_PS2 - 08.12.2011
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
Re: Help with Strcat -
THE_KNOWN - 08.12.2011
new string[256];
128 is not enough
Re: Help with Strcat -
GAMER_PS2 - 08.12.2011
thanks bro