SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 25/08/2018, 04:39 AM   #511
Zamora
Big Clucker
 
Zamora's Avatar
 
Join Date: Sep 2013
Posts: 175
Reputation: 25
Default Re: Dialogs include - Adding new styles to SAMP GUI

I've a problem with this, I'm using your sample code for the weapons.
When i type /weapons it show me the dialog but i can't choose any other weapon except the first one only, and when im clicking on the scroll button it hides the dialog.

Last edited by Zamora; 25/08/2018 at 04:11 PM.
Zamora is offline   Reply With Quote
Old 26/08/2018, 05:17 PM   #512
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,772
Reputation: 854
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Zamora View Post
I've a problem with this, I'm using your sample code for the weapons.
When i type /weapons it show me the dialog but i can't choose any other weapon except the first one only, and when im clicking on the scroll button it hides the dialog.
That means, some other library your are using, is using textdraw IDs for OnPlayerClickTextDraw incorrectly.
Try running the sample in a blank gamemode.
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is offline   Reply With Quote
Old 26/08/2018, 06:22 PM   #513
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 112
Reputation: 15
Default Re: Dialogs include - Adding new styles to SAMP GUI

Removed.

Last edited by CantBeJohn; 28/09/2018 at 06:15 AM.
CantBeJohn is offline   Reply With Quote
Old 26/08/2018, 06:34 PM   #514
Zamora
Big Clucker
 
Zamora's Avatar
 
Join Date: Sep 2013
Posts: 175
Reputation: 25
Default Re: Dialogs include - Adding new styles to SAMP GUI

NVM, fixed it.
__________________

Discord: Click Here


you.tube.com/watch?v=fmBd0ZoH2AU - MDC System

Last edited by Zamora; 26/08/2018 at 10:14 PM.
Zamora is offline   Reply With Quote
Old 27/08/2018, 02:48 AM   #515
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 112
Reputation: 15
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Alteh View Post
HELP ME:

Code:
new SKIN_MODELS[] = 
{
6, 8, 10, 20, 40, 50, 120, 211, 232, 235
};


CMD:test(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_SELECT, DIALOG_STYLE_LIST, " ", "Option 0\nOption 1\nOption 2 [skins] \nOption 3","Go","Cancel");
return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch (dialogid)
{
case DIALOG_SELECT:
{
if(response)
{
if(listitem == 2)
{
ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_PREVIEW_MODEL, " ", SKIN_MODELS, "Take", "Cancel");
}
}
}
case DIALOG_SKIN:
{
if(response){
SetPlayerSkin(playerid, SKIN_MODELS[listitem]);
DDS[playerid][cSkin] = SKIN_MODELS[listitem];
}
}
}
return 1;
}
Here you go:

PHP Code:

new SKIN_MODELS[] = 
{
    
6810204050120211232235
};


CMD:test(playerid)
{
    
ShowPlayerDialog(playeridDIALOG_SELECTDIALOG_STYLE_LIST" ""Option 0\nOption 1\nOption 2 [skins] \nOption 3","Go","Cancel");
    return 
1;
}


public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch (
dialogid)
    {
        case 
DIALOG_SELECT:
        {
            if(
response)
            {
                if(
listitem == 2)
                {
                    new 
string[sizeof(SKIN_MODELS)*5];
                    for(new 
0sizeof(SKIN_MODELS); i++)
                    {
                        
format(stringsizeof string"%s%i\n"stringSKIN_MODELS[i], SKIN_MODELS[i]); 
                    }
                    
ShowPlayerDialog(playeridDIALOG_SKINDIALOG_STYLE_PREVIEW_MODEL" "string"Take""Cancel");
                }
            }
        }
        case 
DIALOG_SKIN:
        {
            if(
response)
            {
                
SetPlayerSkin(playeridSKIN_MODELS[listitem]);
                
DDS[playerid][cSkin] = SKIN_MODELS[listitem];
            }
        }
    }
    return 
1;

You have to loop through the array "SKIN_MODELS", which I did for you.
CantBeJohn is offline   Reply With Quote
Old 07/09/2018, 09:53 PM   #516
DTV
Banned
 
Join Date: Dec 2010
Posts: 547
Reputation: 125
Default Re: Dialogs include - Adding new styles to SAMP GUI

Does this support y_dialogs? If not, will it ever support it?
DTV is offline   Reply With Quote
Old 07/09/2018, 10:20 PM   #517
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,772
Reputation: 854
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by DTV View Post
Does this support y_dialogs? If not, will it ever support it?
This question has been asked zillion times! And yes, it does, you just need to include this before y_dialogs or easy_dialog etc.
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is offline   Reply With Quote
Old 08/09/2018, 02:46 AM   #518
DTV
Banned
 
Join Date: Dec 2010
Posts: 547
Reputation: 125
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Gammix View Post
This question has been asked zillion times! And yes, it does, you just need to include this before y_dialogs or easy_dialog etc.
Wish I had thought about that lol, thanks for the help my dude.
DTV is offline   Reply With Quote
Old 28/09/2018, 06:20 AM   #519
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 112
Reputation: 15
Question Re: Dialogs include - Adding new styles to SAMP GUI

Was this ever addressed? I never bothered getting involved with BigETI's PAWN memory access plugin, but it's his plugin after all; so what he mentioned before is a tad concerning.
CantBeJohn is offline   Reply With Quote
Old 28/09/2018, 09:57 AM   #520
corne
Huge Clucker
 
corne's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 293
Reputation: 205
Default Re: Dialogs include - Adding new styles to SAMP GUI

Ever thought of bringing out a 0.3.DL version with custom textdraw textures to (potentially) reduce the amount you use or make it look even more like the normal SA:MP dialog (looks awesome and pretty similar already, but could always be even better)? Just an idea I had, not sure if it would work and / or look better.
__________________
corne is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Items spawner dialogs (zcmd & dialogs include) Q_Lite Filterscripts 17 16/10/2016 12:09 PM
[FilterScript] [FS]Fighting Styles,5 most usable styles Like in SP By Don_(GH) HAYTXA Filterscripts 10 28/03/2013 07:39 AM
Making an OnFilterScriptInit in an include without adding anything in the .pwn exepct the #include r3k1lLz_ Help Archive 6 06/01/2011 07:49 AM
[FilterScript] [FS]Trans World Airlines v0.2 [TWA] - Bug Fixed - Adding Dialogs Soon. Toni Filterscripts 16 13/06/2010 03:57 PM
[FilterScript] [FS] Fighting Styles (0.3a) - |Save styles in Dini| MoBiL[e] Filterscripts 23 24/04/2010 12:12 PM


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.