Problem with /help on dialog
#1

It is compiling without problems,but,when i use /help,it shows the title,and an empty dialog...
Lines:
pawn Код:
if(strcmp(cmd, "/help", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new HelpString[1050];
            strcat( HelpString," CONT : /reguli /login /stats /carstats /changepass /levelup /upgrade /askq");
            strcat( HelpString,"\n GENERAL : /pay /charity /time /buy /unrentmoto /unrentbike /id /drink /clothes /opendoor");
            strcat( HelpString,"\n GENERAL : /resetupgrades /buygun /skill /licenses /showlicenses(/sl) /animlist /stopanim");
            strcat( HelpString,"\n GENERAL : /re /cancel /accept /eject /usedrugs /fill /admins /oldcar /vehid /carinfos");
            strcat( HelpString,"\n GENERAL : /wi /coin /trunk (/inv)entory /knock /knockout /give /sid /smoke /openhood");
            strcat( HelpString,"\n CHAT : /pme /cw /o /s /low /b /me /do /togooc /tognews /togfam /togpm /togphone");
            if(PlayerInfo[playerid][pJob] == 2) {
            strcat( HelpString,"\n JOB : /free"); }
            else if(PlayerInfo[playerid][pJob] == 3) {
            strcat( HelpString,"\n JOB : /sex"); }
            else if(PlayerInfo[playerid][pJob] == 4) {
            strcat( HelpString,"\n JOB : /sellcannabis /sellcocain"); }
            else if(PlayerInfo[playerid][pJob] == 5) {
            strcat( HelpString,"\n JOB : /dropcar"); }
            else if(PlayerInfo[playerid][pJob] == 7) {
            strcat( HelpString,"\n JOB : /repair /refill /duty"); }
            else if(PlayerInfo[playerid][pJob] == 8) {
            strcat( HelpString,"\n JOB : /guard"); }
            else if(PlayerInfo[playerid][pJob] == 9) {
            strcat( HelpString,"\n JOB : /sellgun /buymats"); }
            else if(PlayerInfo[playerid][pJob] == 12) {
            strcat( HelpString,"\n JOB : /fight /boxstats /boxers"); }
            else if(PlayerInfo[playerid][pJob] == 30) {
            strcat( HelpString,"\n JOB : /fare"); }
            else if(PlayerInfo[playerid][pJob] == 14)  {
            strcat( HelpString,"\n JOB : /starttur"); }
            else if(PlayerInfo[playerid][pJob] == 15) {
            strcat( HelpString,"\n JOB : /papers /bring /sellpaper"); }
            else if(PlayerInfo[playerid][pJob] == 16) {
            strcat( HelpString,"\n JOB : /truck"); }
            else if(PlayerInfo[playerid][pJob] == 18) {
            strcat( HelpString,"\n JOB : /startharvest /stopharvest"); }
            else if(PlayerInfo[playerid][pJob] == 20) {
            strcat( HelpString,"\n JOB : /smuggledrugs /sellcannabisto /sellcocainto"); }
            else if(PlayerInfo[playerid][pJob] == 21) {
            strcat( HelpString,"\n JOB : /startsweep /stopsweep"); }
            else if(PlayerInfo[playerid][pJob] == 22) {
            strcat( HelpString,"\n JOB : /smugglemats"); }
            else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) {
            strcat( HelpString,"\n TAXI : /fare"); }
            if(IsACop(playerid))
            {
                strcat( HelpString,"\n MAI : /maihelp");
            }
            if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
            {
                strcat( HelpString,"\n MSI : /msihelp");
            }
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
                strcat( HelpString,"\n ADMIN : /a /ah /regulamentul");
            }
            strcat( HelpString,"\n AJUTOR : /bancahelp /canistra /bancomat /celularhelp /househelp /notehelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /maihelp /msihelp");
            ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 19961, "{3333FF}Informatii player",HelpString,"exit", "");
        }
        return 1;
    }
Photo:
[img width=500 height=375]/imageshack/img15/7199/samp022go.png[/img]

Uploaded with ImageShack.us
Reply
#2

Try this
strcat( HelpString," CONT : /reguli /login /stats /carstats /changepass /levelup /upgrade /askq \n");
Reply
#3

Same thing
Reply
#4

pawn Код:
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, 19961, "{3333FF}Informatii player",HelpString,"exit", "");
should be changed to

pawn Код:
ShowPlayerDialog(playerid, 19961, DIALOG_STYLE_MSGBOX, "{3333FF}Informatii player",HelpString,"exit", "");
You had the dialog id and the dialog style mixed up.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)