what is wrong here?
#1

Код:
dcmd_mess(playerid,params[])
{
	if(!IsPlayerAdmin(playerid)) return 0;
  new t, i;
	if(sscanf(params, "ud", t, i)) return SendClientMessage(playerid, RED, "/mess ..............");
	return ShowPlayerDialog(playerid,899,DIALOG_STYLE_MSGBOX,t,i,"OK","OK");
}
plz help
Reply
#2

What's the point of the CMD?
Reply
#3

put a message chosen by me to appear in the messagebox

/mess bla(title) alal(info)


sorry for bad english
Reply
#4

You have to define them as strings not integers.
That will output: ►
pawn Код:
new
    title[64],
    info[256]
;
if(sscanf(params, "s[64]s[256]", title, info)) return SendClientMessage(playerid, RED, "/mess [title] [info]");
return ShowPlyerDialog(playerid, 899, DIALOG_STYLE_MSGBOX, title, info,"OK","OK");
This should work.
Reply
#5

i try it 2 sec
Reply
#6

1, 2.. past .. --'
Reply
#7

(1822) : error 017: undefined symbol "ShowPlyerDialog"
uhm o.o
Reply
#8

ShowPlayerDialog
sry.. typo.
Reply
#9

ahh ShowPlyerDialog <<<< lol ShowPLAYERdialog
Reply
#10

dont work i write /mess test test and server say /mess [title] [info] like this return SendClientMessage(playerid, RED, "/mess [title] [info]");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)