Dialog error (rep+)
#1

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)
Reply
#2

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

can do it in another way
Reply
#4

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
Reply
#5

use format.
Reply
#6

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"); 
Reply
#7

Put it as a string
Reply
#8

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.
Reply
#9

thanks you ue_falconx i give rep
Reply
#10

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

-FalconX
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)