DIALOG_STYLE_MSGBOX
#1

how i add this on DIALOG_STYLE_MSGBOX
need msg box

Код:
if (strcmp("/everythings", cmdtext, true, 10) == 0)
	{
        SendClientMessage(playerid, COLOR_GREY, "HELP & COMMANDS: /Help /Commands /Serverinfo /forums /forum /Usercmds /Staff /Teleports /Credits /Login /register|");
		SendClientMessage(playerid, COLOR_GREY, "BIGJUMPS: /bigjump /bigjump[1-6] /pjump /funjump /tubejump /waterjump3 /deadjump /trampline /pipejump /funjump /minijump|");
        SendClientMessage(playerid, COLOR_GREY, "DRIFTS: /Driftls /drift1 /drift2 /drift3 /drift4 /drift5 |");
        SendClientMessage(playerid, COLOR_GREY, "PLAYER CMDS: /buyhealth /buyArmour /weapons /Abike /Pcar /anrg /ahydra /Flowers /Kill /Me /Repair /nametagson /nametagsoff|");
        SendClientMessage(playerid, COLOR_GREY, "DM & DUELS: /beachdm /airdm /majordm /faveladm /shipmadness /glassmadness /minigunmadness /duels /area51 /chill /dmisland|");
        SendClientMessage(playerid, COLOR_GREY, "FUNZON'S /hydra /china /carsumo /vortex /partyzone /freeway /aquapark /adminscastle||");
        SendClientMessage(playerid, COLOR_GREY, "AIRPORT-TELEPORTS: /lvair /aa /sfairport |");
        SendClientMessage(playerid, COLOR_GREY, "NEON'S-&-TUNECAR: /Neon /tune /tunecar |");
        SendClientMessage(playerid, COLOR_GREY, "DIVES: /dive /dive1 /dive2 /dive3 |");
        SendClientMessage(playerid, COLOR_GREY, "WAR'S-CMDS: /war /war1 /war2 /rcwar /wathchrcwar /mg |");
        SendClientMessage(playerid, COLOR_GREY, "ISLANDS: /tisland /aisland /paraisland /airportisland /lost |");
        SendClientMessage(playerid, COLOR_GREY, "VIP'S-CMDS: /Viphelp /Vips /vipcmds /vcmds /smember /gmember /pmember |");
        SendClientMessage(playerid, COLOR_GREY, "PROPERTY-&-HOUSE'S-CMDS: /BuyProperty /Buy /propertyhelp /myhouses /buyhouse /propertyinfo |");
        SendClientMessage(playerid, COLOR_GREY, "NRG'S-CMDS: /nrg /nrg1 /nrg2 /nrg3 /nprkr |");
        SendClientMessage(playerid, COLOR_GREY, "ANIMS-AFK-BACK-CMDS: /afk /back /anims /anims2 |");
        SendClientMessage(playerid, COLOR_GREY, "PARKOUR-CMDS: /parkourcity  /parkours /parkoursc");
		return 1;
	}
Reply
#2

pawn Код:
if (strcmp("/everythings", cmdtext, true, 10) == 0)
    {
        new message[] = "HELP & COMMANDS: /Help /Commands /Serverinfo /forums /forum /Usercmds /Staff /Teleports /Credits /Login /register|\nBIGJUMPS: /bigjump /bigjump[1-6] /pjump /funjump /tubejump /waterjump3 /deadjump /trampline /pipejump /funjump /minijump|");
        new message1[] = "DRIFTS: /Driftls /drift1 /drift2 /drift3 /drift4 /drift5 |\nPLAYER CMDS: /buyhealth /buyArmour /weapons /Abike /Pcar /anrg /ahydra /Flowers /Kill /Me /Repair /nametagson /nametagsoff|");
        new message2[] = "DM & DUELS: /beachdm /airdm /majordm /faveladm /shipmadness /glassmadness /minigunmadness /duels /area51 /chill /dmisland|\nFUNZON'S /hydra /china /carsumo /vortex /partyzone /freeway /aquapark /adminscastle||");
        new message3[] = "AIRPORT-TELEPORTS: /lvair /aa /sfairport |\nNEON'S-&-TUNECAR: /Neon /tune /tunecar |");
        new message4[] = "DIVES: /dive /dive1 /dive2 /dive3 |\nWAR'S-CMDS: /war /war1 /war2 /rcwar /wathchrcwar /mg |");
        new message5[] = "ISLANDS: /tisland /aisland /paraisland /airportisland /lost |\nVIP'S-CMDS: /Viphelp /Vips /vipcmds /vcmds /smember /gmember /pmember |");
        new message6[] = "PROPERTY-&-HOUSE'S-CMDS: /BuyProperty /Buy /propertyhelp /myhouses /buyhouse /propertyinfo |\nNRG'S-CMDS: /nrg /nrg1 /nrg2 /nrg3 /nprkr |");
        new message7[] = "ANIMS-AFK-BACK-CMDS: /afk /back /anims /anims2 |\nPARKOUR-CMDS: /parkourcity  /parkours /parkoursc");
        format(string, sizeof(string),"%s %s %s %s %s %s %s %s",message,message1,message2,message3,message4,message5,message6,message7);
        ShowPlayerDialog(playerid, 11111, DIALOG_STYLE_MSGBOX,"Help Dialog",string,"Ok","Quit");
        return 1;
    }
Reply
#3

pawn Код:
if (strcmp("/everythings", cmdtext, true, 10) == 0)
{
    new Str1[ ] =   "HELP & COMMANDS: /Help /Commands /Serverinfo /forums /forum /Usercmds /Staff /Teleports /Credits /Login /register|\n\
                     BIGJUMPS: /bigjump /bigjump[1-6] /pjump /funjump /tubejump /waterjump3 /deadjump /trampline /pipejump /funjump /minijump|\n\
                     DRIFTS: /Driftls /drift1 /drift2 /drift3 /drift4 /drift5 |\n"
,
        Str2[ ] =   "PLAYER CMDS: /buyhealth /buyArmour /weapons /Abike /Pcar /anrg /ahydra /Flowers /Kill /Me /Repair /nametagson /nametagsoff|\n\
                     DM & DUELS: /beachdm /airdm /majordm /faveladm /shipmadness /glassmadness /minigunmadness /duels /area51 /chill /dmisland|\nFUNZON'S /hydra /china /carsumo /vortex /partyzone /freeway /aquapark /adminscastle||\n\
                     AIRPORT-TELEPORTS: /lvair /aa /sfairport |\n"
,
        Str3[ ] =   "NEON'S-&-TUNECAR: /Neon /tune /tunecar |\n\
                     DIVES: /dive /dive1 /dive2 /dive3 |\n\
                     WAR'S-CMDS: /war /war1 /war2 /rcwar /wathchrcwar /mg |\nISLANDS: /tisland /aisland /paraisland /airportisland /lost |\n\
                     VIP'S-CMDS: /Viphelp /Vips /vipcmds /vcmds /smember /gmember /pmember |\n"
,
        Str4[ ] =   "PROPERTY-&-HOUSE'S-CMDS: /BuyProperty /Buy /propertyhelp /myhouses /buyhouse /propertyinfo |\n\
                     NRG'S-CMDS: /nrg /nrg1 /nrg2 /nrg3 /nprkr |\nANIMS-AFK-BACK-CMDS: /afk /back /anims /anims2 |\n\
                     PARKOUR-CMDS: /parkourcity  /parkours /parkoursc"
,
        StrF[ 1600 ];

    format( StrF, sizeof StrF, "%s%s%s%s%s", Str1, Str2, Str3, Str4 );
    ShowPlayerDialog( playerid, 2111, DIALOG_STYLE_MSGBOX , "Dialog Title", StrF, "Button", "Button" );
    return 1;
}
Reply
#4

Quote:
Originally Posted by Dragony92
Посмотреть сообщение
pawn Код:
if (strcmp("/everythings", cmdtext, true, 10) == 0)
    {
        new message[] = "HELP & COMMANDS: /Help /Commands /Serverinfo /forums /forum /Usercmds /Staff /Teleports /Credits /Login /register|\nBIGJUMPS: /bigjump /bigjump[1-6] /pjump /funjump /tubejump /waterjump3 /deadjump /trampline /pipejump /funjump /minijump|");
        new message1[] = "DRIFTS: /Driftls /drift1 /drift2 /drift3 /drift4 /drift5 |\nPLAYER CMDS: /buyhealth /buyArmour /weapons /Abike /Pcar /anrg /ahydra /Flowers /Kill /Me /Repair /nametagson /nametagsoff|");
        new message2[] = "DM & DUELS: /beachdm /airdm /majordm /faveladm /shipmadness /glassmadness /minigunmadness /duels /area51 /chill /dmisland|\nFUNZON'S /hydra /china /carsumo /vortex /partyzone /freeway /aquapark /adminscastle||");
        new message3[] = "AIRPORT-TELEPORTS: /lvair /aa /sfairport |\nNEON'S-&-TUNECAR: /Neon /tune /tunecar |");
        new message4[] = "DIVES: /dive /dive1 /dive2 /dive3 |\nWAR'S-CMDS: /war /war1 /war2 /rcwar /wathchrcwar /mg |");
        new message5[] = "ISLANDS: /tisland /aisland /paraisland /airportisland /lost |\nVIP'S-CMDS: /Viphelp /Vips /vipcmds /vcmds /smember /gmember /pmember |");
        new message6[] = "PROPERTY-&-HOUSE'S-CMDS: /BuyProperty /Buy /propertyhelp /myhouses /buyhouse /propertyinfo |\nNRG'S-CMDS: /nrg /nrg1 /nrg2 /nrg3 /nprkr |");
        new message7[] = "ANIMS-AFK-BACK-CMDS: /afk /back /anims /anims2 |\nPARKOUR-CMDS: /parkourcity  /parkours /parkoursc");
        format(string, sizeof(string),"%s %s %s %s %s %s %s %s",message,message1,message2,message3,message4,message5,message6,message7);
        ShowPlayerDialog(playerid, 11111, DIALOG_STYLE_MSGBOX,"Help Dialog",string,"Ok","Quit");
        return 1;
    }
Dragony92 16 errors on ur code Hyper's code is working thanks bro
Reply
#5

Uhh it's the same code :P I forgot to remove ");" at the and of the lines, sorry
Reply
#6

please see this anything miss in this code
now its working when i add 2 or 3 commands on this its not working

Код:
    if(strcmp(cmd, "/usercmds", true) == 0)
	{
        new msg[1940];
    	new message[] = "\t\t\t\t\t\t SampEver Party Server Forum \n\n\n\n\n \n{80797B} 1**USER-CMDS /Admins /Help /Commands /gangcommands /forums /forum /serverinfo /Staff /everythings \n 2**OTHER-CMDS /Nametagson /nametagsoff /savepos /r /credits /kill /stuck /me /chute /flowers \n 3**TELEPORTS-CMDS /Teleports /tele \n 4**VIP'S-CMDS /Viphelp /Vips /vipcmds /vcmds /smember /gmember /pmember \n 4**PROPERTY-&-HOUSE'S-CMDS /BuyProperty /Buy /propertyhelp /myhouses /buyhouse /propertyinfo .";
        new message2[] = "\n\n{C2519F} 5**NRG'S-CMDS /nrg /nrg1 /nrg2 /nrg3 /nprkr \n 6**DRAG-DIRT-DERY-DRIFT-CMDS  /drag /drift /driftls /drift[1-4] /basketcar /citydrift /dirt /driftls /derby \n 7**FOR-WEAPONS-&-HEALTH  /weapons /buyarmour /buyhealth \n 8**PARKOUR-CMDS /parkourcity  /parkours /parkoursc \n 9**ANIMS-AFK-BACK-CMDS /afk /back /anims /anims2 \n 10**ISLANDS /tisland /aisland /paraisland /airportisland /lost \n 11**SPAWN.CARS /v /vc /pcar /abike /anrg /ahydra.";
		new message3[]  = "\n\n\n{9A50CC} 12**BIGJUMPS /bigjump /bigjump[1-6] /pjump /funjump /tubejump /waterjump3 /deadjump /trampline /pipejump /funjump /minijump \n 13**NEON'S-&-TUNECAR /Neon /tune /tunecar \n 14**DIVES /dive /dive[1-3] \n 15**WAR'S-CMDS /war /war1 /war2 /rcwar /wathchrcwar /mg \n 16**DM'S-DUELS-CMDS  /beachdm /airdm /majordm /faveladm /shipmadness /glassmadness /minigunmadness /duels /area51 /chill /dmisland .";
		new message4[]   = "\n\n\n{3596DB} 17** FUNZON'S /hydra /china /carsumo /vortex /partyzone /freeway /aquapark /adminscastle \n 18**AIRPORT-/lvair /aa /sfairport \n{F70000}19**SEE /MORETELEPORTS.";
		format(msg, sizeof(msg),"%s %s %s %s %s",message,message2,message3,message4);
		ShowPlayerDialog(playerid, 2100, DIALOG_STYLE_MSGBOX,"SAMPEVER PARTY SERVER FOREVER",msg, "Okay","");
		GameTextForAll("~r~www.SampEver.tk", 6000, 0);
		return 1;
	}
i want to edit these commands add in /usercmds last line

/waytodeath /lvair /twist /dday1 /dday2 /stadium /tune1 /tune2 /tune4 /lsstation /lsstation1 /lsstation2 /wallride /chilline3 /sj /pimp /platium /newsantos /lost
/tp1 /tp2 /ee /usr /fallingdown grj /loco /trans /arch /roof /monstercrash /dtruckstop /ctruckstop /lvtruckstop /dam /eiffel /area51 /lss /pinkautos
Reply
#7

pawn Код:
if (strcmp("/usercmds", cmdtext, true, 10) == 0)
{
    ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"User Cmds","/waytodeath /lvair /twist /dday1\n/dday2 /stadium /tune1 /tune2 /tune4 /lsstation /lsstation1 /lsstation2 /wallride /chilline3 /sj /pimp \n/platium /newsantos /lost /tp1 /tp2 /ee /usr /fallingdown grj /loco /trans /arch /roof\n/monstercrash /dtruckstop /ctruckstop /lvtruckstop /dam /eiffel /area51 /lss /pinkautos","Ok","");
    return 1;
}
Reply
#8

thanks +1 from me to you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)