SA-MP Forums Archive
Help Dialog :( - 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: Help Dialog :( (/showthread.php?tid=354403)



Help Dialog :( - farCry.xD - 26.06.2012

I maked this command : if(strcmp(cmdtext, "/help", true) == 0)
{
new BigString15[1900];
strcat(BigString15, ""R"--------->Comenzi(/cmds)<---------\n", 1900 );
strcat(BigString15, ""L"--------->Creatori(/credits)<---------!\n", 1900 );
strcat(BigString15, ""V"--------->Reguli(/rules)<---------\n", 1900 );
strcat(BigString15, ""O"--------->Teleporturi(/teles)<---------\n", 1900 );
ShowPlayerDialog(playerid,222,DIALOG_STYLE_LIST, ""W"\t\t\t^^^Help^^^",BigString15,"Next", "Close");
return 1;
}

But I want : when a player click "comenzi(/cmds)" the dialog with cmds appear
Sorry for my english :-"


Re: Help Dialog :( - [KHK]Khalid - 26.06.2012

https://sampwiki.blast.hk/wiki/OnDialogResponse


Re: Help Dialog :( - iggy1 - 26.06.2012

You can improve that a LOT.

pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
    new BigString15[] =
        ""R"--------->Comenzi(/cmds)<---------\n\
        "
L"--------->Creatori(/credits)<---------!\n\
        "
V"--------->Reguli(/rules)<---------\n\
        "
O"--------->Teleporturi(/teles)<---------"
    ;
   
    ShowPlayerDialog(playerid,222,DIALOG_STYLE_LIST, ""W"\t\t\t^^^Help^^^", BigString15,"Next", "Close");
    return 1;
}



Re: Help Dialog :( - farCry.xD - 26.06.2012

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
Ok , thank's but what I need to put at " }
// Add the rest of your dialogs here

}
return 0; // If you put return 1 here the callback will not continue to be called in other scripts (filterscripts, etc.).
}"
Add the rest of your dialogs here ? O_o