SA-MP Forums Archive
Dialog error (rep+) - 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: Dialog error (rep+) (/showthread.php?tid=323101)



Dialog error (rep+) - boyan96 - 04.03.2012

Line of error
PHP код:
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"VIP","3 левел\r\n/fix\r\n/flip\r\n/healme\r\n/jetpack\r\n/NRG\r\n{FF0000}4 левел ВИП\r\n/mark\r\n/gotomark\r\n/g LS/LV/SF/MC/STUNT/stunt2/drift1/drift2/drift3/drift3/drift4/drift5\r\n/NRG \r\n/bike\r\n /telegy\r\n/turanus\r\n/tstrat\r\n/tflash\r\n/tjester\r\n/sultan\r\n/at\r\n/listguns\r\n /check\r\n/heal\r\n/invisible\r\n/hyd\r\n/nos\r\n/lock1\r\n/unlock1"," Изход",""); 
Error
C:\Users\user\Desktop\gamemodes\gangwars.pwn(10301 ) : error 075: input line too long (after substitutions)


Re: Dialog error (rep+) - Chrillzen - 04.03.2012

It's too long, use more than one dialog for certain things.


Re: Dialog error (rep+) - boyan96 - 04.03.2012

can do it in another way


Re: Dialog error (rep+) - FalconX - 04.03.2012

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
It's too long, use more than one dialog for certain things.
Maybe you could use strcat for solving such problem?

Strcat are strings which are joined end to end which will probably solve that problem.

pawn Код:
new string[40];//make new string
strcat(string, "Hello,\n"); //make strcat string1
strcat(string, "You can solve this problem: "); // as many strcat you want
strcat(string, "Like this. :)"); // ^
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "strcat example", string, "Close", ""); // and here just put string inside which will insert the broken strings into 1.
/*
Will show up as:
 
Hello,
You can solce this problem: Like this. :)
 
in the dialog
*/
https://sampwiki.blast.hk/wiki/Strcat

Format will also help but Strcat is good for joining 2 or more strings.

Hope this helps.

-FalconX


Re: Dialog error (rep+) - StreetGT - 04.03.2012

use format.


Re: Dialog error (rep+) - boyan96 - 04.03.2012

C:\Users\user\Desktop\gamemodes\gangwars.pwn(10299 ) : error 035: argument type mismatch (argument 3)

Line of error
PHP код:
strcat(string2"V","\r\n/fix\r\n/flip\r\n/healme\r\n/jetpack\r\n/NRG\r\n{FF0000}\r\n/mark\r\n/gotomark"); 



Re: Dialog error (rep+) - Nuke547 - 04.03.2012

Put it as a string


Re: Dialog error (rep+) - FalconX - 04.03.2012

Quote:
Originally Posted by boyan96
Посмотреть сообщение
C:\Users\user\Desktop\gamemodes\gangwars.pwn(10299 ) : error 035: argument type mismatch (argument 3)

Line of error
PHP код:
strcat(string2"V",""); 
pawn Код:
new string[128];
strcat(string, "\r\n/fix\r\n/flip\r\n/healme\r\n/jetpack\r\n");
strcat(string, "/NRG\r\n{FF0000}\r\n/mark\r\n/gotomark");
strcat(string, "\r\n/g LS/LV/SF/MC/STUNT/stunt2/drift1/drift2/drift3/drift3/drift4/drift5");
strcat(string, "\r\n/NRG \r\n/bike\r\n /telegy\r\n/turanus\r\n/tstrat\r\n/tflash\r\n/tjester");
strcat(string, "\r\n/sultan\r\n/at\r\n/listguns\r\n /check\r\n/heal\r\n");
strcat(string, "/invisible\r\n/hyd\r\n/nos\r\n/lock1\r\n/unlock1");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "VIP", string, "Okay", "");
Check this not tested I am on phone.


Re: Dialog error (rep+) - boyan96 - 04.03.2012

thanks you ue_falconx i give rep


Re: Dialog error (rep+) - FalconX - 04.03.2012

Quote:
Originally Posted by boyan96
Посмотреть сообщение
thanks you all i give rep to all
You are most welcome mate.

-FalconX