#1

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
Reply
#2

Click here!
Reply
#3

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;
}
Reply
#4

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
Reply
#5

#define DIALOG_UPDATES 1
up top of your script

pawn Код:
ShowPlayerDialog(playerid,DIALOG_UPDATES,DIALOG_STYLE_MSGBOX,"Updates", string, "Ok", "");
Reply
#6

cod-e.pwn(879 : error 017: undefined symbol "string"

ShowPlayerDialog(playerid,DIALOG_UPDATES,DIALOG_ST YLE_MSGBOX,"Updates", string, "Ok", "");
Reply
#7

Add :

PHP код:
new string[128]; 
Reply
#8

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;
}
Reply
#9

thanksss
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)