SA-MP Forums Archive
Dialog Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Help (/showthread.php?tid=265287)



Dialog Help - Cenation - 30.06.2011

i need help for Dialogs.. i have created commands /cmds(it shows dialog of cmds (MSGBOX DIALOG)).
and if i make it big it give a error
"Input line too big"
cant i make it big? it is small dialog...


Re: Dialog Help - Shadoww5 - 30.06.2011

I'll give you an example:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/cmds"true) == 0)
    {
        new 
sStr[30];
        
strcat(sStr,"Text 1");
        
strcat(sStr,"\nText 2");
        
strcat(sStr,"\nText 3");
        
strcat(sStr,"\nText 4");
        
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Commands:",sStr,"Close""");
        return 
1;
    }
    return 
0;




Re: Dialog Help - Cenation - 30.06.2011

ty..