how can i make Dialog box with text?
#1

like..

im making rules..

Like this:
Код:
1. American Streets Roleplay
2. bla bla bla

OK
Reply
#2

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"R ules","1. American Streets Roleplay\n2. bla bla bla","OK","");
Reply
#3

use this https://sampwiki.blast.hk/wiki/ShowPlayerDialog
for example like u want--
pawn Код:
#define DIALOG_RULES
ShowPlayerDialog(playerid,DIALOG_RULES, DIALOG_STYLE_MSGBOX, "American Streets Role play", "blablabla", "Close", "");
Reply
#4

Код:
ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Rules","1.American Streets Roleplay\n/2.bla bla bla\n","Ok","Cancel");
Reply
#5

If you have trouble creating dialogs, there is a few tools around to help, for example try Scripting Machine , helps with dialogs you can also see a preview of the actual dialog...

Here .. http://code.******.com/p/scripting-machine/

Well have a look for it and try to search dialog tool for chrome too might help, good luck.
Reply
#6

pawn Код:
#define DIALOG_RULES 1

CMD:rules(playerid, params[])
{
    if(Spawned[playerid] == 1) return SendClientMessage(playerid, -1, "You cannot use this command when you're dead.");
    ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "American Streets Roleplay Rules", "Do not use someone elses nick\nDo not cheat\nrules3\nrules4", "Ok", " ");
    return 1;
}
Reply
#7

just do this

PHP код:
ShowPlayerDialog(playerid9999DIALOG_STYLE_MSGBOX"American Streets Roleplay Rules""Do not use someone elses nick\nDo not cheat\nrules3\nrules4""Ok"""); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)