SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/04/2015, 05:22 PM   #21
Airblog
Huge Clucker
 
Airblog's Avatar
 
Join Date: Sep 2014
Location: IR
Posts: 274
Reputation: 30
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Very Nice
Airblog is offline   Reply With Quote
Old 21/04/2015, 12:42 AM   #22
Cassy_
Big Clucker
 
Join Date: Aug 2012
Location: India, Chandigarh
Posts: 79
Reputation: 21
Default Re: Re : Re: Re : Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Really nice
__________________

________________
www.sa-mpdm.co.cc - Zombie Invasion
Scripting for some official and essential conditions( Free of cost * )
Searching for an Admin position to support gaming Rarely
If intrested PM. me


(c) Copyright 2012
Cassy_ is offline   Reply With Quote
Old 21/04/2015, 07:13 AM   #23
ArchB42
Little Clucker
 
ArchB42's Avatar
 
Join Date: Feb 2015
Location: France
Posts: 48
Reputation: 9
Default Re : Re: Re : Re: Re : Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Quote:
Originally Posted by Gammix View Post
Strange, it worked fine for me and other users. If you are using this in filterscript, make sure you have defined this:
pawn Code:
#define FILTERSCRIPT
at the top of the script.

I'll ask you again, do you use Prevmodel Textdraws in your gamemode or other filterscripts?
As I said I use the example script given in the first post, I checked and this is defined at the top of the script. I use the default gamemode named bare and no other filterscript is loaded.

Quote:
Originally Posted by Gammix View Post
And about the model sizes, its default zoom is 0.0, thats why they are appearing like that. Try out
pawn Code:
SetupPrevModelDialog(Float:mx, Float:my, Float:mz, Float:mzoom = 1.0, mbgcolor = 0x4A5A6BFF, hovercolor = 0x8B0000FF, selectcolor = 0x8B0000FF);
.

set the mzoom param to 1.0 or whatever you suits.
This might be the problem. In the example script your gave in the first post, this function, which was added in R4, is not called. Is it an obligation?

EDIT - I just tried to add the filterscript to server.cfg so it's called when the server launches, and no by my own after it already started. This seems to resolve the problem. The only problem I still have is the default zoom but I can handle it with the function you gave in R4.
__________________
EuropeanTrucking - Made from scratch, from players, for players
Server owner & scripter
ArchB42 is offline   Reply With Quote
Old 21/04/2015, 07:50 AM   #24
De4dpOol
Huge Clucker
 
De4dpOol's Avatar
 
Join Date: Oct 2014
Posts: 240
Reputation: 39
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

How to make a dialog with names of models under them? Can you provide an example?
De4dpOol is offline   Reply With Quote
Old 21/04/2015, 07:53 AM   #25
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,806
Reputation: 831
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Quote:
Originally Posted by De4dpOol View Post
How to make a dialog with names of models under them? Can you provide an example?
Its not yet released. Thats just a preview of the future version of this include.
I am facing few problems with player textdraws hiding with descriptions ON. When its stable, i will release it here.
__________________

My GitHub:

Gammix is offline   Reply With Quote
Old 21/04/2015, 02:00 PM   #26
ArchB42
Little Clucker
 
ArchB42's Avatar
 
Join Date: Feb 2015
Location: France
Posts: 48
Reputation: 9
Default Re : Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Maybe you should consider hosting this on Github, that way I (we) might be able to send push requests. I know why I had this bug and that's something I'd be happy to correct.
__________________
EuropeanTrucking - Made from scratch, from players, for players
Server owner & scripter
ArchB42 is offline   Reply With Quote
Old 21/04/2015, 02:50 PM   #27
Victory
Little Clucker
 
Victory's Avatar
 
Join Date: Sep 2014
Location: Turkey
Posts: 28
Reputation: 4
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Good job men!
Victory is offline   Reply With Quote
Old 21/04/2015, 03:28 PM   #28
n0minal
High-roller
 
n0minal's Avatar
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,154
Reputation: 728
Default Re: Re : Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

Awesome include, great Job.
__________________
n0minal is offline   Reply With Quote
Old 25/04/2015, 10:48 AM   #29
DexX39
Banned
 
Join Date: Dec 2010
Location: France
Posts: 759
Reputation: 35
Default Re : Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

......

Last edited by DexX39; 25/04/2015 at 11:27 AM.
DexX39 is offline   Reply With Quote
Old 19/05/2015, 01:53 PM   #30
Yarik1995
Little Clucker
 
Join Date: Jan 2015
Posts: 9
Reputation: 1
Default Re: Dialogs Include (new dialog functions and DIALOG_STYLE_PREVMODEL)

use this dialog everything works fine only crashdetect get the following error:

[16:56:42] [debug] Run time error 4: "Array index out of bounds"
[16:56:42] [debug] Accessing element at negative index -1
[16:56:42] [debug] Backtrace (most recent call first):
[16:56:42] [debug] #0 public OnPlayerClickTextDraw()+0x18ee8 from PPC_Trucking.amx
Yarik1995 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 02:33 PM.


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