Ino-Bagaric / Dialog-Center-Text

SAMP Dialog Center Text
Apache License 2.0
17 stars 4 forks source link

open.mp support #4

Open Mergevos opened 1 year ago

Mergevos commented 1 year ago

I have modified your version of library. I'm willing to s a submit a pull request, but firstly, because of compatibility, since not everyone use open.mp, if creating open.mp could be possible, it would be nice, so you can pull to that, instead of to master.

Mergevos commented 1 year ago

I also encountered a bug too. This library is not working in open.mp, or maybe I'm using it wrongly?



stock Server_AboutUsDialog(playerid)
{
    inline AboutUsDialog(response, listitem, string:inputtext[])
    {
        #pragma unused listitem, inputtext
        if(response)
        {
            HidePlayerDialog(playerid);
        }
    }
    Dialog_ShowCallback(playerid, using inline AboutUsDialog, DIALOG_STYLE_MSGBOX, "\\cAbout Us", "\\cWe bring the roleplay back on its track.\n \\cSince a long time ago, no real RP servers came out. We are here to change that.\\cServer has been made by one humble developer, using as many of his skills as they can.\n \\cIf you find any bugs, report it to us, don't ruin the game.", "Close");
}```