Change this to BoxDialog :)? (+Rep)
#1

This to boxdialog?

pawn Код:
CMD:updatesssss(playerid, params[])
{
    SendClientMessage(playerid, GREEN, "________________| Server Updates V2.5.0 |________________");
    SendClientMessage(playerid, -1, "                                                     ");
    SendClientMessage(playerid, -1, "- Spectating bug fixed");
    SendClientMessage(playerid, -1, "- All capture zones fixed\n");
    SendClientMessage(playerid, -1, "- Added more capture points.\n ");
    SendClientMessage(playerid, -1, "- Added anti-ban Evade system");
    SendClientMessage(playerid, -1, "- New Mapped Jail be more confortable while being on jail.\n");
    SendClientMessage(playerid, -1, "- Added /admins Dialog.\n");
    SendClientMessage(playerid, -1, "- Added anti-driveby System.\n");
    SendClientMessage(playerid, -1, "- Added event system.\n");
    SendClientMessage(playerid, -1, "- Added Admin Types (Spanish Admins)\n");
    SendClientMessage(playerid, -1, "- Added /saveallstats CMD.\n");
    SendClientMessage(playerid, -1, "- Added SeaSparrows to every team.\n");
    SendClientMessage(playerid, -1, "- Fixed Givescore / Givecash Admin CMDS\n");
    SendClientMessage(playerid, -1, "- Added Teleport Checkpoints (Euro base)\n");
    SendClientMessage(playerid, -1, "- Fixed Admin Control Panel.\n");
    SendClientMessage(playerid, -1, "                                                     ");
    SendClientMessage(playerid, GREEN, "________________________________________________");
    return 1;
}
Reply
#2

Here you go
pawn Код:
#define DIALOG_UPDATES      13548

CMD:updatesssss(playerid, params[])
{
    new string[128], Vstring[500];
    format(string, sizeof(string), "________________| Server Updates V2.5.0 |________________");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "                                             ");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Spectating bug fixed");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- All capture zones fixed\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added more capture points.\n ");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added anti-ban Evade system");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- New Mapped Jail be more confortable while being on jail.\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added /admins Dialog.\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added anti-driveby System.\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added event system.\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added Admin Types (Spanish Admins)\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added /saveallstats CMD.\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added SeaSparrows to every team.\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Fixed Givescore / Givecash Admin CMDS\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Added Teleport Checkpoints (Euro base)\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "- Fixed Admin Control Panel.\n");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "                                                     ");
    strcat(Vstring, string, sizeof(Vstring));
    format(string, sizeof(string), "________________________________________________");
    strcat(Vstring, string, sizeof(Vstring));
    ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX, "Updates", Vstring, "Close", "");
    return 1;
}
You should change the size of the Vstring/string if some words were missing..
Reply
#3

format for what?

only this

pawn Код:
CMD:updatesssss(playerid, params[])
{
    new PT[1000];
    strcat(PT, "________________| Server Updates V2.5.0 |________________\n\n", sizeof(PT));
    strcat(PT, "- Spectating bug fixed\n", sizeof(PT));
    strcat(PT, "- All capture zones fixed\n", sizeof(PT));
    strcat(PT, "- Added more capture points.\n ", sizeof(PT));
    strcat(PT, "- Added anti-ban Evade system\n", sizeof(PT));
    strcat(PT, "- New Mapped Jail be more confortable while being on jail.\n", sizeof(PT));
    strcat(PT, "- Added /admins Dialog.\n", sizeof(PT));
    strcat(PT, "- Added anti-driveby System.\n", sizeof(PT));
    strcat(PT, "- Added event system.\n", sizeof(PT));
    strcat(PT, "- Added Admin Types (Spanish Admins)\n", sizeof(PT));
    strcat(PT, "- Added /saveallstats CMD.\n", sizeof(PT));
    strcat(PT, "- Added SeaSparrows to every team.\n", sizeof(PT));
    strcat(PT, "- Fixed Givescore / Givecash Admin CMDS\n", sizeof(PT));
    strcat(PT, "- Added Teleport Checkpoints (Euro base)\n", sizeof(PT));
    strcat(PT, "- Fixed Admin Control Panel.\n\n", sizeof(PT));
    strcat(PT, "________________________________________________", sizeof(PT));
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Updates", PT, "Close", "");
    return 1;
}
Reply
#4

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
strcat(PT, "________________________________________________");, sizeof(PT));
pawn Код:
//Should be
strcat(PT, "________________________________________________", sizeof(PT));
Other than that, PT's code should work.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)