SA-MP Forums Archive
Dialog can use string? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog can use string? (/showthread.php?tid=178708)



Dialog can use string? - billy4601 - 23.09.2010

as title. i want use string to categories my dialogid. Like this

pawn Код:
ShowPlayerDialog(playerid,login_dialog,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");
Is only support Int?

PSialog below can use "********"?


Re: dialogid can use string? - Jefff - 23.09.2010

string too


Re: Dialog can use string? - billy4601 - 23.09.2010

I do not understand.

Sorry for my bad English.


Re: Dialog can use string? - Jefff - 23.09.2010

if(dialogid == login_dialog)
if(!strcmp(inputtext,dini_get... or other file system))
//login


Re: Dialog can use string? - Zimon95 - 23.09.2010

If you mean how to use strings like dialogid well, you can:
pawn Код:
#define login_dialog 0 //Example



Re: Dialog can use string? - billy4601 - 24.09.2010

Quote:
Originally Posted by Zimon95
Посмотреть сообщение
If you mean how to use strings like dialogid well, you can:
pawn Код:
#define login_dialog 0 //Example
So,You mean if I need to use string as dialogid.

I need dim a define string for this?