View difference between Paste ID: zXaSLERP and gMD1zjBB
SHOW: | | - or go back to the newest paste.
1
#include <a_samp>
2
#include <YSI\y_commands>
3
new nName[100], strc[100],stri[100],strb1[100],strb2[100], dstyle, inum;
4
new nitem1[100], nitem2[100], nitem3[100], nitem4[100], nitem5[100], nitem6[100], nitem7[100], nitem8[100], nitem9[100], nitem10[100];
5
public OnFilterScriptInit()
6
{
7
	print("\n--------------------------------------");
8
	print("Dynamic Dialog Creator By AF(ArviFilter)");
9
	print("--------------------------------------\n");
10
	nitem1 = "";
11
	nitem2 = "";
12
	nitem3 = "";
13
	nitem4 = "";
14
	nitem5 = "";
15
	nitem6 = "";
16
	nitem7 = "";
17
	nitem8 = "";
18
	nitem9 = "";
19
	nitem10 = "";
20
	inum = 0;
21
	return 1;
22
}
23
24
public OnFilterScriptExit()
25
{
26
	return 1;
27
}
28
29
30
main()
31
{
32
}
33
#define COLOR_RED 0xFF0000AA
34
#define COLOR_DRED 0xE00000AA
35
#define COLOR_BLUE 0x0DAAFFAA
36
#define COLOR_DBLUE 0x002FBAAA
37
#define COLOR_GREEN 0x4EF50CAA
38
#define COLOR_LIME 0xF2F23DAA
39
#define COLOR_ORANGE 0xFFAA21AA
40
#define COLOR_WHITE 0xFFFFFFAA
41
#define max_items 10
42
43
#define d_1 1001
44
#define d_2 1002
45
#define d_3 1003
46
#define d_m_1 1101
47
#define d_m_2 1102
48
#define d_m_3 1103
49
#define d_m_4 1104
50
#define d_m_5 1105
51
#define d_l_1 1301
52
#define d_l_2 1302
53
#define d_l_3 1303
54
#define d_l_4 1304
55
#define d_l_5 1305
56
#define d_l_6 1306
57
#define d_l_7 1307
58
#define d_l_8 1308
59
#define d_l_9 1309
60
#define d_l_10 1310
61
#define d_l_11 1311
62
#define d_l_12 1312
63
#define prev 1501
64
#define prev2 1502
65
#define e_1 2001
66
67
68
69
CMD:dia(playerid, params[])
70
{
71
	#pragma unused params
72
	ShowPlayerDialog(playerid, d_1, DIALOG_STYLE_LIST, "Dynamic dialog maker by AF","Create New Dialog\nEdit Existing Ones","Select","Close");
73
	return 1;
74
75
}
76
77
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
78
{
79
	if(dialogid == d_1)
80
	{
81
	    if(!response)
82
	    {
83
	        return 1;
84
	    }
85
	    else
86
	    {
87
88
			if(listitem == 0)
89
			{
90
			   	ShowPlayerDialog(playerid, d_2, DIALOG_STYLE_INPUT,"Dynamic dialog maker by AF","Choose Dialog's name","Select","Back");
91
			 	return 1;
92
			}
93
			if(listitem == 1)
94
			{
95
			    ShowPlayerDialog(playerid, e_1, 0,"Dynamic dialog maker by AF","This will be added at the next update","Okay","");
96
			    return 1;
97
			}
98
			else
99
			{
100
			    return 1;
101
			}
102
	    }
103
	
104
	}
105
	if(dialogid == d_2)
106
	{
107
	    if(!response)
108
	    {
109
	        ShowPlayerDialog(playerid, d_1, DIALOG_STYLE_LIST , "Dynamic dialog maker by AF","Create New Dialog\nEdit Existing Ones","Select","Close");
110
	        return 1;
111
	    }
112
	    else
113
	    {
114
			if(strlen(inputtext) < 1)
115
			{
116
			    ShowPlayerDialog(playerid, d_2, DIALOG_STYLE_INPUT,"Dialog's name(Step 1)","Dialog's name can not be empty,please choose a name for the dialog","Select","Close");
117
                return 1;
118
			}
119
			else
120
			{
121
			    format(nName,sizeof(nName),"%s.AF",inputtext);
122-
			    ShowPlayerDialog(playerid, d_3, DIALOG_STYLE_LIST ,"Dialog's style(Step 2)","Massage Box Style(Allows player to see the massage that is contained at the dialog)\nInput Style(Allows Player to enter information in the dialog)\nList Style(Allows player to choose one of the items in the dialog)\nPassword Style(Allows Player to enter information without revealing it on the screen)","Select","Back");
122+
			    ShowPlayerDialog(playerid, d_3, DIALOG_STYLE_LIST ,"Dialog's style(Step 2)","Message Box Style\nInput Style\nList Style\nPassword Style","Select","Back");
123
                return 1;
124
			}
125
	    }
126
	}
127
	if(dialogid == d_3)
128
	{
129
	    if(!response)
130
	    {
131
	        ShowPlayerDialog(playerid, d_2, DIALOG_STYLE_INPUT,"Dialog's name(Step 1)","Choose Dialog's name","Select","Back");
132
	 	 	return 1;
133
	    }
134
	    else
135
	    {
136
			switch(listitem)
137
			{
138
				case 0:
139
				{
140
				    dstyle = 0;
141
				    ShowPlayerDialog(playerid, d_m_1, DIALOG_STYLE_INPUT,"Dialog's Header(Step 3)","Enter The Text you want to be diplayed as header of the dialog","Enter","Back");
142
				    return 1;
143
				}
144
				case 1:
145
				{
146
				    dstyle = 1;
147
				    ShowPlayerDialog(playerid, d_m_1, DIALOG_STYLE_INPUT,"Dialog's Header(Step 3)","Enter The Text you want to be diplayed as header of the dialog","Enter","Back");
148
				    return 1;
149
				}
150
				case 2:
151
				{
152
				    ShowPlayerDialog(playerid, d_l_1, DIALOG_STYLE_INPUT,"Dialog's Header(Step 3)","Enter The Text you want to be diplayed as header of the dialog","Enter","Back");
153
				    dstyle = 2;
154
				    return 1;
155
				}
156
				case 3:
157
				{
158
				    ShowPlayerDialog(playerid, d_m_1, DIALOG_STYLE_INPUT,"Dialog's Header(Step 3)","Enter The Text you want to be diplayed as header of the dialog","Enter","Back");
159
				    dstyle = 3;
160
				    return 1;
161
				}
162
			}
163
	    }
164
	}
165
	if(dialogid == d_m_1)
166
	{
167
	    if(!response)
168
	    {
169-
	        ShowPlayerDialog(playerid, d_3, 2,"Dialog's style(Step 2)","Massage Box Style(Allows player to see the massage that is contained at the dialog)\nInput Style(Allows Player to enter information in the dialog)\nList Style(Allows player to choose one of the items in the dialog)\nPassword Style(Allows Player to enter information without revealing it on the screen)","Select","Back");
169+
	        ShowPlayerDialog(playerid, d_3, 2,"Dialog's style(Step 2)","Message Box Style\nInput Style\nList Style\nPassword Style","Select","Back");
170
	        return 1;
171
	    }
172
	    else
173
	    {
174
	        format(strc,sizeof(strc),"%s",inputtext);
175-
	        ShowPlayerDialog(playerid, d_m_2, DIALOG_STYLE_INPUT,"Dialog's massage(Step 4)","Enter The Text that you want to show as dialog's massage","Enter","Back");
175+
	        ShowPlayerDialog(playerid, d_m_2, DIALOG_STYLE_INPUT,"Dialog's message(Step 4)","Enter The Text that you want to show as dialog's message","Enter","Back");
176
			return 1;
177
	    }
178
	}
179
	if(dialogid == d_m_2)
180
	{
181
	    if(!response)
182
	    {
183
	    	ShowPlayerDialog(playerid, d_m_1, DIALOG_STYLE_INPUT,"Dialog's Header(Step 3)","Enter The Text you want to be diplayed as header of the dialog","Enter","Back");
184
			return 1;
185
	    }
186
	    else
187
		{
188
		    if(strlen(inputtext) < 1)
189
		    {
190
				ShowPlayerDialog(playerid, d_m_2, DIALOG_STYLE_INPUT,"Dialog's  Header(Step 3)","The Text Must contain at least one character/number","Enter","Back");
191
				return 1;
192
		    }
193
		    else
194
		    {
195
		        format(stri,sizeof(stri),"%s",inputtext);
196
		        ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
197
				return 1;
198
		    }
199
		}
200
	}
201
	if(dialogid == d_m_3)
202
	{
203
		if(!response)
204
		{
205-
		    ShowPlayerDialog(playerid, d_m_2, DIALOG_STYLE_INPUT,"Dialog's massage(Step 4)","Enter The Text that you want to show as dialog's massage","Enter","Back");
205+
		    ShowPlayerDialog(playerid, d_m_2, DIALOG_STYLE_INPUT,"Dialog's message(Step 4)","Enter The Text that you want to show as dialog's message","Enter","Back");
206
		    return 1;
207
		}
208
		else
209
		{
210
			if(strlen(inputtext) < 1)
211
			{
212
			    ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","This bottun must contain atleast one character.Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
213
			    return 1;
214
			}
215
			else
216
			{
217
			    format(strb1,sizeof(strb1),"%s",inputtext);
218
			    ShowPlayerDialog(playerid, d_m_4, DIALOG_STYLE_INPUT,"Dialog's left bottun(step 6)","Enter the Text of left button of the dialog(The last button might be the only button if the next button be null)","Preview","Back");
219
				return 1;
220
			}
221
		}
222
	}
223
	if(dialogid == d_m_4)
224
	{
225
	    if(!response)
226
	    {
227
   			ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
228
			return 1;
229
	    }
230
	    else
231
	    {
232
			format(strb2,sizeof(strb2),"%s",inputtext);
233
			if(dstyle == 2)
234
			{
235
			    if(isnull(nitem2))
236
			    {
237
			        inum = 1;
238
			        stri = nitem1;
239
			        ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
240
			        return 1;
241
			    }
242
			    else
243
			    {
244
			        if(isnull(nitem3))
245
			        {
246
			            inum = 2;
247
						format(stri,sizeof(stri),"%s\n%s",nitem1,nitem2);
248
						ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
249
						return 1;
250
			        }
251
			        else
252
			        {
253
			            if(isnull(nitem4))
254
			            {
255
			                inum = 3;
256
							format(stri,sizeof(stri),"%s\n%s\n%s",nitem1,nitem2,nitem3);
257
							ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
258
							return 1;
259
			            }
260
			            else
261
			            {
262
			                if(isnull(nitem5))
263
			                {
264
                                inum = 4;
265
								format(stri,sizeof(stri),"%s\n%s\n%s\n%s",nitem1,nitem2,nitem3,nitem4);
266
								ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
267
								return 1;
268
			                }
269
			                else
270
			                {
271
			                    if(isnull(nitem6))
272
			                    {
273
                                    inum = 5;
274
									format(stri,sizeof(stri),"%s\n%s\n%s\n%s\n%s",nitem1,nitem2,nitem3,nitem4,nitem5);
275
									ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
276
									return 1;
277
			                        
278
			                    }
279
			                    else
280
			                    {
281
			                        if(isnull(nitem7))
282
			                        {
283
                                        inum = 6;
284
										format(stri,sizeof(stri),"%s\n%s\n%s\n%s\n%s\n%s",nitem1,nitem2,nitem3,nitem4,nitem5,nitem6);
285
										ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
286
										return 1;
287
			                        }
288
			                        else
289
			                        {
290
			                            if(isnull(nitem8))
291
			                            {
292
                                            inum = 7;
293
											format(stri,sizeof(stri),"%s\n%s\n%s\n%s\n%s\n%s\n%s",nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7);
294
                                            ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
295
											return 1;
296
			                            }
297
			                            else
298
			                            {
299
			                                if(isnull(nitem9))
300
			                                {
301
			                                    inum = 8;
302
												format(stri,sizeof(stri),"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7,nitem8);
303
												ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
304
												return 1;
305
			                                }
306
			                                else
307
			                                {
308
			                                    if(isnull(nitem10))
309
			                                    {
310
			                                        inum = 9;
311
													format(stri,sizeof(stri),"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7,nitem8,nitem9);
312
													ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
313
													return 1;
314
			                                    }
315
			                                    else
316
			                                    {
317
			                                        inum = 10;
318
													format(stri,sizeof(stri),"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7,nitem8,nitem9,nitem10);
319
													ShowPlayerDialog(playerid, prev, dstyle, strc, stri, strb1, strb2);
320
													return 1;
321
			                                    }
322
			                                }
323
			                            }
324
			                        }
325
			                    }
326
			                }
327
			            }
328
			        }
329
			    }
330
			}
331
			else
332
			{
333
				ShowPlayerDialog(playerid, prev, dstyle, strc,stri,strb1,strb2);
334
				return 1;
335
			}
336
		}
337
	}
338
	if(dialogid == d_l_1)
339
	{
340
	    if(!response)
341
	    {
342-
	        ShowPlayerDialog(playerid, d_3, 2,"Dialog's style(Step 2)","Massage Box Style(Allows player to see the massage that is contained at the dialog)\nInput Style(Allows Player to enter information in the dialog)\nList Style(Allows player to choose one of the items in the dialog)\nPassword Style(Allows Player to enter information without revealing it on the screen)","Select","Back");
342+
	        ShowPlayerDialog(playerid, d_3, 2,"Dialog's style(Step 2)","Massage Box Style\nInput Style\nList Style\nPassword Style","Select","Back");
343
	        return 1;
344
	    }
345
	    else
346
	    {
347
	        format(strc,sizeof(strc),"%s",inputtext);
348
	        ShowPlayerDialog(playerid, d_l_2, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The first item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
349
			return 1;
350
	    }
351
	}
352
	if(dialogid == d_l_2)
353
	{
354
	    if(!response)
355
	    {
356
	    	ShowPlayerDialog(playerid, d_l_1, DIALOG_STYLE_INPUT,"Dialog's Header(Step 3)","Enter The Text you want to be diplayed as header of the dialog","Enter","Back");
357
			return 1;
358
	    }
359
	    else
360
		{
361
		    if(strlen(inputtext) < 1)
362
		    {
363
				ShowPlayerDialog(playerid, d_l_2, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","This Part at least needs one character.Enter The first item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
364
				return 1;
365
		    }
366
		    else
367
		    {
368
		        format(nitem1,sizeof(nitem1),"%s",inputtext);
369
				ShowPlayerDialog(playerid, d_l_3, 1,"Dialog's items(Step 4)","Enter The second item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
370
				return 1;
371
		    }
372
		}
373
	}
374
	if(dialogid == d_l_3)
375
	{
376
	    if(!response)
377
	    {
378
	        ShowPlayerDialog(playerid, d_l_2, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The first item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
379
			return 1;
380
	    }
381
	    else
382
	    {
383
	        if(strlen(inputtext) < 1)
384
	        {
385
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
386
				return 1;
387
	        }
388
	        else
389
	        {
390
		        format(nitem2,sizeof(nitem2),"%s",inputtext);
391
				ShowPlayerDialog(playerid, d_l_4, 1,"Dialog's items(Step 4)","Enter The third item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
392
				return 1;
393
		    }
394
	    }
395
	}
396
	if(dialogid == d_l_4)
397
	{
398
	    if(!response)
399
	    {
400
	        ShowPlayerDialog(playerid, d_l_3, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The second item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
401
			return 1;
402
	    }
403
	    else
404
	    {
405
	        if(strlen(inputtext) < 1)
406
	        {
407
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
408
				return 1;
409
	        }
410
	        else
411
	        {
412
		        format(nitem3,sizeof(nitem3),"%s",inputtext);
413
				ShowPlayerDialog(playerid, d_l_5, 1,"Dialog's items(Step 4)","Enter The fourth item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
414
				return 1;
415
		    }
416
	    }
417
	}
418
	if(dialogid == d_l_5)
419
	{
420
	    if(!response)
421
	    {
422
	        ShowPlayerDialog(playerid, d_l_4, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The third item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
423
			return 1;
424
	    }
425
	    else
426
	    {
427
	        if(strlen(inputtext) < 1)
428
	        {
429
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
430
				return 1;
431
	        }
432
	        else
433
	        {
434
		        format(nitem4,sizeof(nitem4),"%s",inputtext);
435
				ShowPlayerDialog(playerid, d_l_6, 1,"Dialog's items(Step 4)","Enter The fourth item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
436
				return 1;
437
		    }
438
	    }
439
	}
440
	if(dialogid == d_l_6)
441
	{
442
	    if(!response)
443
	    {
444
	        ShowPlayerDialog(playerid, d_l_5, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The fourth item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
445
			return 1;
446
	    }
447
	    else
448
	    {
449
	        if(strlen(inputtext) < 1)
450
	        {
451
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
452
				return 1;
453
	        }
454
	        else
455
	        {
456
		        format(nitem5,sizeof(nitem5),"%s",inputtext);
457
				ShowPlayerDialog(playerid, d_l_7, 1,"Dialog's items(Step 4)","Enter The fifth item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
458
				return 1;
459
		    }
460
	    }
461
	}
462
	if(dialogid == d_l_7)
463
	{
464
	    if(!response)
465
	    {
466
	        ShowPlayerDialog(playerid, d_l_6, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The fifth item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
467
			return 1;
468
	    }
469
	    else
470
	    {
471
	        if(strlen(inputtext) < 1)
472
	        {
473
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
474
				return 1;
475
	        }
476
	        else
477
	        {
478
		        format(nitem6,sizeof(nitem6),"%s",inputtext);
479
				ShowPlayerDialog(playerid, d_l_8, 1,"Dialog's items(Step 4)","Enter The seventh item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
480
				return 1;
481
		    }
482
	    }
483
	}
484
	if(dialogid == d_l_8)
485
	{
486
	    if(!response)
487
	    {
488
	        ShowPlayerDialog(playerid, d_l_7, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The sixth item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
489
			return 1;
490
	    }
491
	    else
492
	    {
493
	        if(strlen(inputtext) < 1)
494
	        {
495
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
496
				return 1;
497
	        }
498
	        else
499
	        {
500
		        format(nitem7,sizeof(nitem7),"%s",inputtext);
501
				ShowPlayerDialog(playerid, d_l_9, 1,"Dialog's items(Step 4)","Enter The eighth item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
502
				return 1;
503
		    }
504
	    }
505
	}
506
	if(dialogid == d_l_9)
507
	{
508
	    if(!response)
509
	    {
510
	        ShowPlayerDialog(playerid, d_l_8, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The eighth item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
511
			return 1;
512
	    }
513
	    else
514
	    {
515
	        if(strlen(inputtext) < 1)
516
	        {
517
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
518
				return 1;
519
	        }
520
	        else
521
	        {
522
		        format(nitem8,sizeof(nitem8),"%s",inputtext);
523
				ShowPlayerDialog(playerid, d_l_10, 1,"Dialog's items(Step 4)","Enter The ninth item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
524
				return 1;
525
		    }
526
	    }
527
	}
528
	if(dialogid == d_l_10)
529
	{
530
	    if(!response)
531
	    {
532
	        ShowPlayerDialog(playerid, d_l_9, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The ninth item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
533
			return 1;
534
	    }
535
	    else
536
	    {
537
	        if(strlen(inputtext) < 1)
538
	        {
539
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
540
				return 1;
541
	        }
542
	        else
543
	        {
544
		        format(nitem9,sizeof(nitem9),"%s",inputtext);
545
				ShowPlayerDialog(playerid, d_l_11, 1,"Dialog's items(Step 4)","Enter The tenth item that you want to show in the dialog (leave the box empty if you don't want to any other item)","Enter","Back");
546
				return 1;
547
		    }
548
	    }
549
	}
550
	if(dialogid == d_l_11)
551
	{
552
	    if(!response)
553
	    {
554
	        ShowPlayerDialog(playerid, d_l_9, DIALOG_STYLE_INPUT,"Dialog's items(Step 4)","Enter The ninth item that you want to show in the dialog (This systems does not support more than 10 items)","Enter","Back");
555
			return 1;
556
	    }
557
	    else
558
	    {
559
	        if(strlen(inputtext) < 1)
560
	        {
561
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
562
				return 1;
563
	        }
564
	        else
565
	        {
566
		        format(nitem10,sizeof(nitem10),"%s",inputtext);
567
				ShowPlayerDialog(playerid, d_m_3, DIALOG_STYLE_INPUT,"Dialog's right bottun(step 5)","Enter the Text of right bottun of the dialog(it might be the only bottun if the next bottun be null)","Enter","Back");
568
				return 1;
569
		    }
570
	    }
571
	}
572
	if(dialogid == prev)
573
	{
574
	    if(!response)
575
	    {
576
	        ShowPlayerDialog(playerid, prev2, DIALOG_STYLE_LIST,"What do you want to do with the dialog?","Save it\nDelete it","Select","");
577
			return 1;
578
		}
579
		else
580
		{
581
  			ShowPlayerDialog(playerid, prev2, DIALOG_STYLE_LIST,"What do you want to do with the dialog?","Save it\nDelete it","Select","");
582
			return 1;
583
		}
584
	}
585
	if(dialogid == prev2)
586
	{
587
	    if(!response)
588
	    {
589
	        return 1;
590
	    }
591
	    else
592
	    {
593
			switch(listitem)
594
			{
595
			    case 0:
596
			    {
597
			        if(dstyle == 2)
598
			        {
599
			            switch(inum)
600
			            {
601
			                case 1:
602
			                {
603
								new fi[1024];
604
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\", \"%s\", \"%s\");",dstyle,strc,stri,strb1,strb2);
605
                    			new File:dialog = fopen(nName, io_write);
606
								if(dialog)
607
								{
608
									fwrite(dialog, fi);
609
									fclose(dialog);
610
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
611
									return 1;
612
								}
613
							}
614
							case 2:
615
							{
616
								new fi[1024];
617
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,strb1,strb2);
618
                    			new File:dialog = fopen(nName, io_write);
619
								if(dialog)
620
								{
621
									fwrite(dialog, fi);
622
									fclose(dialog);
623
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
624
									return 1;
625
								}
626
							}
627
							case 3:
628
							{
629
								new fi[1024];
630
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,strb1,strb2);
631
                    			new File:dialog = fopen(nName, io_write);
632
								if(dialog)
633
								{
634
									fwrite(dialog, fi);
635
									fclose(dialog);
636
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
637
									return 1;
638
								}
639
							}
640
							case 4:
641
							{
642
								new fi[1024];
643
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,nitem4,strb1,strb2);
644
                    			new File:dialog = fopen(nName, io_write);
645
								if(dialog)
646
								{
647
									fwrite(dialog, fi);
648
									fclose(dialog);
649
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
650
									return 1;
651
								}
652
							}
653
							case 5:
654
							{
655
								new fi[1024];
656
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,nitem4,nitem5,strb1,strb2);
657
                    			new File:dialog = fopen(nName, io_write);
658
								if(dialog)
659
								{
660
									fwrite(dialog, fi);
661
									fclose(dialog);
662
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
663
									return 1;
664
								}
665
							}
666
							case 6:
667
							{
668
								new fi[1024];
669
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\\n%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,strb1,strb2);
670
                    			new File:dialog = fopen(nName, io_write);
671
								if(dialog)
672
								{
673
									fwrite(dialog, fi);
674
									fclose(dialog);
675
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
676
									return 1;
677
								}
678
							}
679
							case 7:
680
							{
681
								new fi[1024];
682
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7,strb1,strb2);
683
                    			new File:dialog = fopen(nName, io_write);
684
								if(dialog)
685
								{
686
									fwrite(dialog, fi);
687
									fclose(dialog);
688
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
689
									return 1;
690
								}
691
							}
692
							case 8:
693
							{
694
								new fi[1024];
695
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7,nitem8,strb1,strb2);
696
                    			new File:dialog = fopen(nName, io_write);
697
								if(dialog)
698
								{
699
									fwrite(dialog, fi);
700
									fclose(dialog);
701
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
702
									return 1;
703
								}
704
							}
705
							case 9:
706
							{
707
								new fi[1024];
708
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7,nitem8,nitem9,strb1,strb2);
709
                    			new File:dialog = fopen(nName, io_write);
710
								if(dialog)
711
								{
712
									fwrite(dialog, fi);
713
									fclose(dialog);
714
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
715
									return 1;
716
								}
717
							}
718
							case 10:
719
							{
720
								new fi[1024];
721
			        			format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\", \"%s\", \"%s\");",dstyle,strc,nitem1,nitem2,nitem3,nitem4,nitem5,nitem6,nitem7,nitem8,nitem9,nitem10,strb1,strb2);
722
                    			new File:dialog = fopen(nName, io_write);
723
								if(dialog)
724
								{
725
									fwrite(dialog, fi);
726
									fclose(dialog);
727
									SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
728
									return 1;
729
								}
730
							}
731
						}
732
			        }
733
			        else
734
			        {
735
			            new fi[1024];
736
			        	format(fi, sizeof(fi),"ShowPlayerDialog(playerid, dialogid, %d, \"%s\", \"%s\", \"%s\", \"%s\");",dstyle,strc,stri,strb1,strb2);
737
                    	new File:dialog = fopen(nName, io_write);
738
						if(dialog)
739
						{
740
							fwrite(dialog, fi);
741
							fclose(dialog);
742
							SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully made");
743
							return 1;
744
						}
745
			        }
746
			        
747
			    }
748
			    case 1:
749
			    {
750
                    SendClientMessage(playerid, COLOR_WHITE, "The file have been succesfully deleted");
751
					return 1;
752
			    }
753
			}
754
	    }
755
	}
756
	if(dialogid == e_1)
757
	{
758
	    ShowPlayerDialog(playerid, d_1, DIALOG_STYLE_LIST, "Dynamic dialog maker by AF","Create New Dialog\nEdit Existing Ones","Select","Close");
759
	    return 1;
760
	}
761
	else
762
	{
763
		return 1;
764
	}
765
}