SA-MP Forums Archive
Dialog Issue - 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)
+--- Thread: Dialog Issue (/showthread.php?tid=512546)



Dialog Issue - Proximo - 11.05.2014

Hey there everybody,

Today, I have a issue that I can't completely view my dialog.

CODE BELOW:
Код:
CMD:acmds(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] >= 1)
    {
new string[1024];
strcat(string, "{46BEE6}Level 1 Commands: {C9C60A}/warn, /setmytime, /ip, /lgetinfo, /ltune, /lhy, /lnos, /asay, /ping, /kick, /lslowmo \n");
strcat(string, "/goto, /weaps, /morning, /adminarea, /reports, /richlist, /miniguns, /gotoplace, /afixcar \n");
strcat(string, "/afixhouse, /afixbiz, /afixall, /write, /ltc(1-13), /lpl \n");
strcat(string, " \n");
strcat(string, "{46BEE6}Level 2 Commands: {C9C60A}/setcolor, /lockcar, /unlockcar, /burn, /spawnplayer, /disarm, /highlight, /jetpack, /flip \n");
strcat(string, "/vgoto, /gotoxyz, /ban, /aslap, /jailed, /frozen, /mute, /unmute, /muted, /screen, /laston \n");
strcat(string, "/gspec, /gspecvehicle, /gspecoff, /cc, /gmenu, /ltele, /lcm, /ltmenu \n");
strcat(string, " \n");
strcat(string, "{46BEE6}Level 3 Commands: {C9C60A}/giveweapon, /sethealth, /setarmour, /givecash, /setskin, /setwanted, /setname, /setweather \n");
strcat(string, "/settime, /setworld, /setinterior, /force, /eject, /bankrupt, /sbankrupt, /ubound \n");
strcat(string, "/lweaps, /countdown, /lammo, /lcar, /lplane, /lhunter, /lrhino, /lseas \n");
strcat(string, "/lsparrow, /lhydra, /carhealth, ,/carcolour, /setping, /announce, /announce2, /destroycar \n");
strcat(string, "/warp, /teleplayer, /vget, /givecar, /givebike, /gethere, /get, /explode \n");
strcat(string, "/jail, /unjail, /freeze, /unfreeze, /akill, /aka, /cac, /caps \n");
strcat(string, "/move, /moveplayer, /healall, /armourall, /lweather, /ltime, /lweapons \n");
strcat(string, " \n");
strcat(string, "{46BEE6}Level 4 Commands: {C9C60A}/fu, /uconfig, /fakedeath, /changemode \n");
strcat(string, " \n");
strcat(string, "{46BEE6}Level 5 Commands: {C9C60A}/setcash, /setscore, /psetname, /disable, /enable, /setlevel, /rban, /templevel, /lockserver \n");
strcat(string, "/unlockserver, /forbidname, /forbidword, /disablechat, /pickup, /object, /fakechat, /fakecmd, /spawnall, /muteall, /unmuteall \n");
strcat(string, "/getall, /killall, /freezeall, /unfreezeall, /kickall, /slapall, /explodeall, /disarmall, /ejectall, /setallskin, /setallwanted \n");
strcat(string, "/setallweather, /setalltime, /setallworld, /setallscore, /setallcash, /giveallcash, /giveallweapon \n");
strcat(string, "/setpass, /asellh, /spam, /loadfs/ unloadfs, /gmx, /resetunbuyables \n");
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "{46BEE6}Admin Commands:",string, "Okay", "Close");
	  } else return SendClientMessage(playerid,red,"ERROR: You need to be level 1 to use this command");
	return 1;
}
PICTURE BELOW:


As you can see in the picture, it is showing an incomplete dialog. It is supposed to be showing the whole thing till Level 5, but it is only showing till Level 3.

And yeah, please don't ask me whether I have compiled or not, because I have compiled it more than 10 times.

Thanks in advance.

Cheers.


Re : Dialog Issue - ReD_HunTeR - 11.05.2014

pawn Код:
CMD:acmdss(playerid,params[])
{
   #pragma unused params
   if(PlayerInfo[playerid][Level] >= 1)
   {
        new string[2000]; // just increase the string...
        strcat(string, "{46BEE6}Level 1 Commands: {C9C60A}/warn, /setmytime, /ip, /lgetinfo, /ltune, /lhy, /lnos, /asay, /ping, /kick, /lslowmo \n");
        strcat(string, "/goto, /weaps, /morning, /adminarea, /reports, /richlist, /miniguns, /gotoplace, /afixcar \n");
        strcat(string, "/afixhouse, /afixbiz, /afixall, /write, /ltc(1-13), /lpl \n");
        strcat(string, " \n");
        strcat(string, "{46BEE6}Level 2 Commands: {C9C60A}/setcolor, /lockcar, /unlockcar, /burn, /spawnplayer, /disarm, /highlight, /jetpack, /flip \n");
        strcat(string, "/vgoto, /gotoxyz, /ban, /aslap, /jailed, /frozen, /mute, /unmute, /muted, /screen, /laston \n");
        strcat(string, "/gspec, /gspecvehicle, /gspecoff, /cc, /gmenu, /ltele, /lcm, /ltmenu \n");
        strcat(string, " \n");
        strcat(string, "{46BEE6}Level 3 Commands: {C9C60A}/giveweapon, /sethealth, /setarmour, /givecash, /setskin, /setwanted, /setname, /setweather \n");
        strcat(string, "/settime, /setworld, /setinterior, /force, /eject, /bankrupt, /sbankrupt, /ubound \n");
        strcat(string, "/lweaps, /countdown, /lammo, /lcar, /lplane, /lhunter, /lrhino, /lseas \n");
        strcat(string, "/lsparrow, /lhydra, /carhealth, ,/carcolour, /setping, /announce, /announce2, /destroycar \n");
        strcat(string, "/warp, /teleplayer, /vget, /givecar, /givebike, /gethere, /get, /explode \n");
        strcat(string, "/jail, /unjail, /freeze, /unfreeze, /akill, /aka, /cac, /caps \n");
        strcat(string, "/move, /moveplayer, /healall, /armourall, /lweather, /ltime, /lweapons \n");
        strcat(string, " \n");
        strcat(string, "{46BEE6}Level 4 Commands: {C9C60A}/fu, /uconfig, /fakedeath, /changemode \n");
        strcat(string, " \n");
        strcat(string, "{46BEE6}Level 5 Commands: {C9C60A}/setcash, /setscore, /psetname, /disable, /enable, /setlevel, /rban, /templevel, /lockserver \n");
        strcat(string, "/unlockserver, /forbidname, /forbidword, /disablechat, /pickup, /object, /fakechat, /fakecmd, /spawnall, /muteall, /unmuteall \n");
        strcat(string, "/getall, /killall, /freezeall, /unfreezeall, /kickall, /slapall, /explodeall, /disarmall, /ejectall, /setallskin, /setallwanted \n");
        strcat(string, "/setallweather, /setalltime, /setallworld, /setallscore, /setallcash, /giveallcash, /giveallweapon \n");
        strcat(string, "/setpass, /asellh, /spam, /loadfs/ unloadfs, /gmx, /resetunbuyables \n");
        ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "{46BEE6}Admin Commands:",string, "Okay", "Close");
   }
   else return SendClientMessage(playerid,red,"ERROR: You need to be level 1 to use this command");
   return 1;
}



Re: Dialog Issue - Affan - 11.05.2014

Increase your string, like to [2024]; , it depends on the things you have done.


Re: Dialog Issue - NaClchemistryK - 11.05.2014

Quote:
Originally Posted by Affan
Посмотреть сообщение
Increase your string, like to [2024]; , it depends on the things you have done.
Correct. Your string is too short.