help? -
PAF - 26.01.2014
CMD:updates(playerid, params[])
{
SendClientMessage(playerid, RED, "________________| Server Updates V2.3 |________________");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, "- ban system fixed.");
SendClientMessage(playerid, -1, "- stats in dialog.");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, RED, "________________________________________________" );
return 1;
}
how i convert this cmd into dialog
Re: help? -
ikbenremco - 26.01.2014
Click here!
Re: help? -
itsCody - 26.01.2014
u can try
pawn Код:
CMD:updates(playerid, params[])
{
new string[260];
strcat(string, ""{FF0000}________________| Server Updates V2.3 |________________");
strcat(string, "");
strcat(string, "{FFFFFF}- ban system fixed.");
strcat(string, "{FFFFFF}- stats in dialog.");
strcat(string, "");
strcat(string, "{FF0000}________________________________________________");
ShowPlayerDialog(playerid,DIALOG_urdialoghere,DIALOG_STYLE_MSGBOX,"Updates", string, "Ok", "");
return 1;
}
Re: help? -
PAF - 26.01.2014
it gaves me errors....
error line:
ShowPlayerDialog(playerid,DIALOG_urdialoghere,DIAL OG_STYLE_MSGBOX,"Updates", string, "Ok", "");
error:
cod-e.pwn(8796) : error 017: undefined symbol "DIALOG_urdialoghere"
cod-e.pwn(8797) : error 029: invalid expression, assumed zero
Re: help? -
itsCody - 26.01.2014
#define DIALOG_UPDATES 1
up top of your script
pawn Код:
ShowPlayerDialog(playerid,DIALOG_UPDATES,DIALOG_STYLE_MSGBOX,"Updates", string, "Ok", "");
Re: help? -
PAF - 26.01.2014
cod-e.pwn(879
: error 017: undefined symbol "string"
ShowPlayerDialog(playerid,DIALOG_UPDATES,DIALOG_ST YLE_MSGBOX,"Updates", string, "Ok", "");
Re: help? -
Kalsty - 26.01.2014
Add :
PHP код:
new string[128];
Re: help? -
Konstantinos - 26.01.2014
pawn Код:
CMD:updates(playerid, params[])
{
ShowPlayerDialog(playerid, 456, DIALOG_STYLE_MSGBOX, "Updates", "{FF0000}________________| Server Updates V2.3 |________________\n{FFFFFF}- ban system fixed.\n- stats in dialog.\n{FF0000}________________________________________________", "Close", "");
return 1;
}
Re: help? -
PAF - 26.01.2014
thanksss