SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/05/2015, 04:06 AM   #41
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,772
Reputation: 854
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Quote:
Originally Posted by Kolstin View Post
1. How to display the text as in this screenshot? http://i.imgur.com/9c8h16r.png
2. When will the upgrade?
3. Bug. http://i.imgur.com/xiMy6qY.png
pawn Code:
CMD:test(playerid, params[]) {
    new info[] = {
        0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,
        50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,
        97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,
        132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,
        167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,
        202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,
        237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,
        272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299
    };
    ShowPlayerDialog(playerid, 228, DIALOG_STYLE_PREVMODEL, "Skin", info, "Enter", "Exit");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
    if(dialogid == 228) {
        if(response) {
            SetPlayerSkin(playerid, listitem);
        }
    }
    return 1;
}
1. Thats just future version screen shot.
2. Maybe this month (depends on time, i have lots of ideas and very less time to implement)
3. I figured out what was causing that; Its crashdetect plugin! Its giving false crash warnings whenever we have set PlayerTextdraw vars value to INVALID_TEXT_DRAW.
Here try this code:
pawn Code:
CMD:test(playerid, params[]) {
    new PlayerText:test[MAX_PLAYERS];
    test[playerid] = PlayerText:INVALID_TEXT_DRAW;
    return 1;
}
It will give same run time error for this too but there's no such crash actually.

Quote:
Originally Posted by Yarik1995 View Post
what I can not understand in any way with version R4. Let's go back to the older version which worked for me. men interested in gives an error why

dialogue sewn into your mod code inserted as include this error generates when you press 1 button (spawn) everything else works fine (dialogue works everything works but this error prevents...)

[19:29:41] [debug] Run time error 4: "Array index out of bounds"
[19:29:41] [debug] Accessing element at negative index -1
[19:29:41] [debug] AMX backtrace:
[19:29:41] [debug] #0 00018f48 in public OnPlayerClickTextDraw (0, 65535) from PPC_Trucking.amx

https://pp.vk.me/c622225/v622225296/...gYOuO0qGPU.jpg still a problem with buttons...
I gave the answer above (bulletin 3). There's bug in crashdetect plugin.

And where as those buttons. I tested them in different resolutions and they are fine. Download R4 once again. I have made some changes (minor ones) and fixed the buttons size, all problems seems to be fixed.
__________________

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

Gammix is offline   Reply With Quote
Old 20/05/2015, 05:49 AM   #42
Excips
Big Clucker
 
Join Date: Oct 2012
Posts: 57
Reputation: 18
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

This is fucking awesome.

When will the model descriptions version come out?
I want to use it for making prev model dialogs based team selection
__________________
NEW SA:MP Forums hacker detected - SA:MP HACK Community
Report against him/her HERE immediatly!
Excips is offline   Reply With Quote
Old 20/05/2015, 05:58 AM   #43
Neufox
Big Clucker
 
Join Date: Oct 2014
Posts: 60
Reputation: 36
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Very epic.

Is this faster than mSelection? And please release the description version asap so that i can create my spawn dialogs!
__________________
- Also Checkout:

#1 SAMP Admin Filterscript
#2 INI - File Manager Include
Neufox is offline   Reply With Quote
Old 20/05/2015, 09:47 AM   #44
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,772
Reputation: 854
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Description label version out!
  • Supports description labels for each model (you can also disable desc. for specific model by adding and empty desc. "")
  • Example added in the thread
  • Work perfect without bugs
  • For desc. dialog styles, the macro is: DIALOG_STYLE_PREVMODEL_DESC

Screen:


Download from the thread.

NOTE: You can still use non-desc. version from dialogs2.inc! Desc. version dialog have a custom function: ShowPlayerPrevModelDialog.

If you want to stick with R4, theres no problem because there is no new code update.
__________________

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

Gammix is offline   Reply With Quote
Old 20/05/2015, 03:23 PM   #45
Excel™
Gangsta
 
Excel™'s Avatar
 
Join Date: Jul 2012
Posts: 548
Reputation: 95
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Finally, thanks for dialogs2.Inc.
__________________
NO MORE CODING SAMP :V
JUST PLAYING...
Excel™ is offline   Reply With Quote
Old 24/05/2015, 05:07 AM   #46
Q_Lite
Big Clucker
 
Join Date: Sep 2012
Posts: 112
Reputation: 17
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Please add a feature by which we can set each listitem model's rotation and zoom.

Like: SetupPrevModelDialogListitem(dialogid, listitem, Float, Float:y, Float:z, Float:zoom);
Q_Lite is offline   Reply With Quote
Old 28/05/2015, 02:27 PM   #47
iWhite
Big Clucker
 
Join Date: May 2012
Posts: 176
Reputation: 18
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Good job!

But i have an error from CrashDetect plugin, when I'm using your include, while using default Dialog(MSGBOX):

Quote:
[17:32:10] [debug] Server crashed while executing new.amx
[17:32:10] [debug] AMX backtrace:
[17:32:10] [debug] #0 native CallLocalFunction () from samp-server.exe
[17:32:10] [debug] #1 0001edf4 in public OnDialogResponse (playerid=1, dialogid=327, response=1, listitem=-1, inputtext[]=@00993e3c "") at C:\Users\Kompiuteris\Desktop\GRP4\pawno\include\Di alogs.inc:632
[17:32:10] [debug] Native backtrace:
[17:32:10] [debug] #0 004743dc in ?? () from samp-server.exe
[17:32:10] [debug] #1 004010b6 in ?? () from samp-server.exe
[17:32:10] [debug] #2 5f8162ca in ?? () from plugins\crashdetect.dll
[17:32:10] [debug] #3 5f818b28 in ?? () from plugins\crashdetect.dll
[17:32:10] [debug] #4 5f8109c7 in ?? () from plugins\crashdetect.dll
[17:32:10] [debug] #5 5f81631a in ?? () from plugins\crashdetect.dll
[17:32:10] [debug] #6 5f7351a7 in ?? () from plugins\streamer.dll
[17:32:10] [debug] #7 0046eae1 in ?? () from samp-server.exe
[17:32:10] [debug] #8 004528f0 in ?? () from samp-server.exe
[17:32:10] [debug] #9 0049d629 in ?? () from samp-server.exe
[17:32:10] [debug] #10 004a8a4e in ?? () from samp-server.exe
Could you fix this?
iWhite is offline   Reply With Quote
Old 28/05/2015, 02:37 PM   #48
Kapersky™
Gangsta
 
Kapersky™'s Avatar
 
Join Date: Jul 2014
Location: !ncredible India.
Posts: 698
Reputation: 344
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Man, it's awesome. Love it. Keep going dude! Really awesome.
__________________
around.
Kapersky™ is offline   Reply With Quote
Old 28/05/2015, 02:37 PM   #49
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,772
Reputation: 854
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

I just used ALS hook method 7 and those errors were fixed for me.

Update | R5 - 28th May, 2015
  • Fixed MSGBOX errors or crash
  • Updated to ALS hook method 7
Please download the latest R5 version from the thread.

This update has been done in both dialogs.inc and dialogs2.inc.
__________________

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

Gammix is offline   Reply With Quote
Old 28/05/2015, 02:45 PM   #50
iWhite
Big Clucker
 
Join Date: May 2012
Posts: 176
Reputation: 18
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Quote:
Originally Posted by Gammix View Post
I just used ALS hook method 7 and those errors were fixed for me.

Update | R5 - 28th May, 2015
  • Fixed MSGBOX errors or crash
  • Updated to ALS hook method 7
Please download the latest R5 version from the thread.

This update has been done in both dialogs.inc and dialogs2.inc.
That was fast! I will report if I will see any errors
iWhite 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 11:09 AM
[FilterScript] [FS]Fighting Styles,5 most usable styles Like in SP By Don_(GH) HAYTXA Filterscripts 10 28/03/2013 06:39 AM
Making an OnFilterScriptInit in an include without adding anything in the .pwn exepct the #include r3k1lLz_ Help Archive 6 06/01/2011 06:49 AM
[FilterScript] [FS]Trans World Airlines v0.2 [TWA] - Bug Fixed - Adding Dialogs Soon. Toni Filterscripts 16 13/06/2010 02:57 PM
[FilterScript] [FS] Fighting Styles (0.3a) - |Save styles in Dini| MoBiL[e] Filterscripts 23 24/04/2010 11:12 AM


All times are GMT. The time now is 03:08 PM.


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