Dialog problem - 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 problem (
/showthread.php?tid=125948)
Dialog problem -
nastoe - 06.02.2010
i have one more question....
Код:
if(strcmp(cmd, "/pravila", true) == 0) {
SendClientMessageToAll(0xDEEE20FF, "Netko je napisao /pravila");
SendClientMessage(playerid,0x0FF0C,"[1] Nemoj pitati da postanes admin u igri.");
SendClientMessage(playerid,0x0FF0C,"[2] Nemoj ubijati igrace tek kada se stvore u server.");
SendClientMessage(playerid,0x0FF0C,"[3] Nemoj koristiti cheatove i modove.");
SendClientMessage(playerid,0x0FF0C,"[4] Postuj admine, pomoci ce ti.");
SendClientMessage(playerid,0x0FF0C,"[5] Postuj pravila.");
SendClientMessage(playerid,0x0FF0C,"[6] Postuj odluke od admina.");
SendClientMessage(playerid,0xAA3333AA,"[7] Ako izades sa LV zracne luke dobit ces kick ali velika vjerojatnost za BAN!");
SendClientMessage(playerid,0x0FF0C,"Hvala sto igrate na LasVenturas Party serveru!");
return 1;
}
how to make that in dialog, example
Код:
if(!strcmp(cmdtext, "/admins", true))
{
SendClientMessageToAll(0xDEEE20FF, "Netko je napisao /admins");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Server pravila", "[1] Nemoj pitati da postanes admin u igri.", "Ok", "Odustani");
return 1;
}
can someone put me hole (pravila/rules) in dialog?
Re: Dialog problem -
¤Adas¤ - 06.02.2010
Код:
if(!strcmp(cmdtext, "/admins", true))
{
SendClientMessageToAll(0xDEEE20FF, "Netko je napisao /admins");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Server pravila", "[1] Nemoj pitati da postanes admin u igri.\n[2] AND SO :)", "Ok", "Odustani");
return 1;
}
Just put there \n.
Re: Dialog problem -
nastoe - 06.02.2010
tyy