Huge string
#1

Hello

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...."
And in command:
Код:
ShowPlayerDialog( playerid, 1, DIALOG_STYLE_LIST, "Cars", CARS, "Button1", "Button2" );
Then in compile my pawno crash.

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" );
Then in compile it says:

Код:
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)
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 ?
Reply


Messages In This Thread
Huge string - by Larry123 - 01.03.2012, 11:25
Re: Huge string - by T0pAz - 01.03.2012, 11:27
Re: Huge string - by Stylock - 01.03.2012, 11:28
Re: Huge string - by Universal - 01.03.2012, 11:29
Re: Huge string - by Larry123 - 01.03.2012, 11:31
Re: Huge string - by milanosie - 01.03.2012, 11:32
Re: Huge string - by T0pAz - 01.03.2012, 11:33
Re: Huge string - by Larry123 - 01.03.2012, 11:36
Re: Huge string - by T0pAz - 01.03.2012, 11:38
Re: Huge string - by Larry123 - 01.03.2012, 11:47

Forum Jump:


Users browsing this thread: 2 Guest(s)