01.03.2012, 11:25
Hello
I try to do DIALOG_STYLE_INPUT with a lot of car names. So when i use like this:
(Top of script)
And in command:
Then in compile my pawno crash.
When i put it in string:
Then in compile it says:
So... what is solution to make huge string and use it in dialogs, how can i do, that i still can use all these car names in dialog ?
I try to do DIALOG_STYLE_INPUT with a lot of car names. So when i use like this:
(Top of script)
Код:
#define CARS "Names\nNames...."
Код:
ShowPlayerDialog( playerid, 1, DIALOG_STYLE_LIST, "Cars", CARS, "Button1", "Button2" );
When i put it in string:
Код:
New string[1024]; format( string, sizeof( string ), "Names\nNames...." ); ShowPlayerDialog( playerid, 1, DIALOG_STYLE_LIST, "Cars", string, "Button1", "Button2" );
Код:
C:\samp03dsvr_R2_win32\gamemodes\GamemodeRoleplay.pwn(3336) : error 075: input line too long (after substitutions) C:\samp03dsvr_R2_win32\gamemodes\GamemodeRoleplay.pwn(3337) : error 037: invalid string (possibly non-terminated string)