what is wrong here? - 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: what is wrong here? (
/showthread.php?tid=146700)
what is wrong here? -
iJumbo - 08.05.2010
Код:
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
Re: what is wrong here? -
RyDeR` - 08.05.2010
What's the point of the CMD?
Re: what is wrong here? -
iJumbo - 08.05.2010
put a message chosen by me to appear in the messagebox
/mess bla(title) alal(info)
sorry for bad english
Re: what is wrong here? -
RyDeR` - 08.05.2010
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.
Re: what is wrong here? -
iJumbo - 08.05.2010
i try it 2 sec
Re: what is wrong here? -
RyDeR` - 08.05.2010
1, 2.. past .. --'
Re: what is wrong here? -
iJumbo - 08.05.2010
(1822) : error 017: undefined symbol "ShowPlyerDialog"
uhm o.o
Re: what is wrong here? -
RyDeR` - 08.05.2010
ShowPl
ayerDialog
sry.. typo.
Re: what is wrong here? -
iJumbo - 08.05.2010
ahh ShowPlyerDialog <<<< lol ShowPLAYERdialog
Re: what is wrong here? -
iJumbo - 08.05.2010
dont work i write /mess test test and server say /mess [title] [info] like this return SendClientMessage(playerid, RED, "/mess [title] [info]");