SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 16/07/2017, 03:09 PM   #301
Zorono
Huge Clucker
 
Zorono's Avatar
 
Join Date: Dec 2015
Location: GetPlayerPos(271055, Float:xCord, Float:yCord, Float:zCord);
Posts: 361
Reputation: 26
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Gammix View Post
Update v3.0.1:
- Fixed the minor issues reported.
- Added backward compatibility:
PHP Code:
ShowPlayerPreviewModelDialog
Dialog_SetModelRot 
errors again... please some help
Code:
\pawno\include\dialogs.inc(908) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(913) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(916) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(918) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(928) : error 017: undefined symbol "index"
\pawno\include\dialogs.inc(930) : error 017: undefined symbol "index"
\pawno\include\dialogs.inc(931) : error 017: undefined symbol "index"
\pawno\include\dialogs.inc(943) : error 017: undefined symbol "style"
(19345) : error 017: undefined symbol "DIALOG_STYLE_PREVMODEL"
(19348) : error 017: undefined symbol "z"
(19348) : warning 215: expression has no effect
(19348) : error 029: invalid expression, assumed zero
(19348) : error 017: undefined symbol "zoom"
(19348) : fatal error 107: too many error messages on one line
(90: style var here isn't defined
Code:
if (style == DIALOG_STYLE_PREVIEW_MODEL)
(913): the same, style var isn't defined
Code:
return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
(916): the same, style var isn't defined
Code:
return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
(92: index var isn't defined
Code:
index = playerDialogTotalListitems[playerid]++;
and some..... please some help
Zorono is offline   Reply With Quote
Old 16/07/2017, 03:49 PM   #302
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Ottawa, Canada
Posts: 1,692
Reputation: 670
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Zorono View Post
errors again... please some help
Code:
\pawno\include\dialogs.inc(908) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(913) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(916) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(918) : error 017: undefined symbol "style"
\pawno\include\dialogs.inc(928) : error 017: undefined symbol "index"
\pawno\include\dialogs.inc(930) : error 017: undefined symbol "index"
\pawno\include\dialogs.inc(931) : error 017: undefined symbol "index"
\pawno\include\dialogs.inc(943) : error 017: undefined symbol "style"
(19345) : error 017: undefined symbol "DIALOG_STYLE_PREVMODEL"
(19348) : error 017: undefined symbol "z"
(19348) : warning 215: expression has no effect
(19348) : error 029: invalid expression, assumed zero
(19348) : error 017: undefined symbol "zoom"
(19348) : fatal error 107: too many error messages on one line
(90: style var here isn't defined
Code:
if (style == DIALOG_STYLE_PREVIEW_MODEL)
(913): the same, style var isn't defined
Code:
return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
(916): the same, style var isn't defined
Code:
return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
(92: index var isn't defined
Code:
index = playerDialogTotalListitems[playerid]++;
and some..... please some help
Try now:
https://github.com/Agneese-Saini/SA-...de/dialogs.inc
__________________
Gammix is offline   Reply With Quote
Old 16/07/2017, 03:55 PM   #303
SmileJack
Big Clucker
 
SmileJack's Avatar
 
Join Date: Jul 2017
Posts: 84
Reputation: 0
Default Re: Dialogs include - Adding new styles to SAMP GUI

Amazing, but it is possible to add more functions, for example. When selecting that object you get the price, level, etc. It is for a task, well no: p
SmileJack is offline   Reply With Quote
Old 17/07/2017, 12:31 AM   #304
Max_Andolini
Huge Clucker
 
Max_Andolini's Avatar
 
Join Date: Oct 2013
Posts: 291
Reputation: 31
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Gammix View Post
Please add Dialog_GetModel next version.
Max_Andolini is offline   Reply With Quote
Old 17/07/2017, 04:06 AM   #305
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Ottawa, Canada
Posts: 1,692
Reputation: 670
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Max_Andolini View Post
Please add Dialog_GetModel next version.
OnDialogResponse's param "inputtext" contains the modelid of the current listitem.

PHP Code:
// this is your modelid
strval(inputext
__________________
Gammix is offline   Reply With Quote
Old 17/07/2017, 02:15 PM   #306
Shaheen
Big Clucker
 
Shaheen's Avatar
 
Join Date: Feb 2016
Location: Qatar
Posts: 199
Reputation: 11
Default Re: Dialogs include - Adding new styles to SAMP GUI

How to Get this to this Dialog
I am not getting it right :
Here is ma code:
PHP Code:
stock showDealership(playeridcategory)
{
    new 
msg2[2000];
    
Player[playerid][dealershipChoice] = category;
    for(new 
0sizeof(Dealership); i++)
    {
        if(
Dealership[i][dealerType] == category)
        {
            
//format(msg2, sizeof(msg2), "%s\n"CHAT_YELLOW"%s "CHAT_YELLOW"$%s {FFFFFF}/ "CHAT_YELLOW"%i"CHAT_WHITE" Token(s)", msg2, vehicleNames[Dealership[i][dealerModel] - 400], FormatNumber(Dealership[i][dealerPrice]), Dealership[i][dealerToken]);
            
format(msg2sizeof(msg2), "%s%i\t%s ($%s / %i Token(s)\n)"msg2,Dealership[i][dealerModel],vehicleNames[Dealership[i][dealerModel] - 400],FormatNumber(Dealership[i][dealerPrice]), Dealership[i][dealerToken]);
        }
    }
    if(
Player[playerid][english])
        
ShowPlayerDialog(playeridDIALOG_DEALERSHIPDIALOG_STYLE_PREVIEW_MODEL"Vehicle Dealership - Choose Car"msg2"Buy""Cancel");
    else
        
ShowPlayerDialog(playeridDIALOG_DEALERSHIPDIALOG_STYLE_LIST"Dealer Kendaraan - Pilih Mobil"msg2"Beli""Batal");
    return 
1;

*the commented part is my original one with old dialog

here is ma defines
PHP Code:
enum __dealerInfo
{
    
dialogID,
    
dealerModel,
    
dealerPrice,
    
dealerToken,
    
dealerType
}

new 
Dealership[][__dealerInfo] =
{
    {
040220000005DEALERSHIP_SPORTVEHICLES},
    {
141120000005DEALERSHIP_SPORTVEHICLES},
    {
241520000005DEALERSHIP_SPORTVEHICLES},
    {
342920000005DEALERSHIP_SPORTVEHICLES},
    {
445120000005DEALERSHIP_SPORTVEHICLES},
    {
547520000005DEALERSHIP_SPORTVEHICLES},
    {
647720000005DEALERSHIP_SPORTVEHICLES},
    {
749620000005DEALERSHIP_SPORTVEHICLES},
    {
850620000005DEALERSHIP_SPORTVEHICLES},
    {
954120000005DEALERSHIP_SPORTVEHICLES},
    {
1055820000005DEALERSHIP_SPORTVEHICLES},
    {
1155920000005DEALERSHIP_SPORTVEHICLES},
    {
1256520000005DEALERSHIP_SPORTVEHICLES},
    {
1358720000005DEALERSHIP_SPORTVEHICLES},
    {
1458920000005DEALERSHIP_SPORTVEHICLES},
    {
1560220000005DEALERSHIP_SPORTVEHICLES},
    {
1660320000005DEALERSHIP_SPORTVEHICLES}, 
AND I AM GETTING THIS ONE AS VERY SMALL FONT
IS THERE ANY WAY TO MAKE IT LARGER ?

Thnx
__________________
Donate To me and Help Running My Server : PayPal.Me/ShaheenMuhammed

Join My Discord : shaheen#0682



Shaheen is offline   Reply With Quote
Old 17/07/2017, 04:01 PM   #307
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Ottawa, Canada
Posts: 1,692
Reputation: 670
Default Re: Dialogs include - Adding new styles to SAMP GUI

Code:
format(msg2, sizeof(msg2), "%s%i\t%s ($%s / %i Token(s)\n)", msg2,Dealership[i][dealerModel],vehicleNames[Dealership[i][dealerModel] - 400],FormatNumber(Dealership[i][dealerPrice]), Dealership[i][dealerToken]);
You have the ending bracket after "\n", this will mess with the next modelid. Put it before "\n".
__________________
Gammix is offline   Reply With Quote
Old 17/07/2017, 04:15 PM   #308
Shaheen
Big Clucker
 
Shaheen's Avatar
 
Join Date: Feb 2016
Location: Qatar
Posts: 199
Reputation: 11
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Gammix View Post
Code:
format(msg2, sizeof(msg2), "%s%i\t%s ($%s / %i Token(s)\n)", msg2,Dealership[i][dealerModel],vehicleNames[Dealership[i][dealerModel] - 400],FormatNumber(Dealership[i][dealerPrice]), Dealership[i][dealerToken]);
You have the ending bracket after "\n", this will mess with the next modelid. Put it before "\n".

Is there any way to increase the size of Boxes and models ?
__________________
Donate To me and Help Running My Server : PayPal.Me/ShaheenMuhammed

Join My Discord : shaheen#0682



Shaheen is offline   Reply With Quote
Old 17/07/2017, 04:20 PM   #309
Iszcegg
Gangsta
 
Iszcegg's Avatar
 
Join Date: Oct 2013
Location: Venezuela
Posts: 835
Reputation: 87
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Gammix View Post
Code:
format(msg2, sizeof(msg2), "%s%i\t%s ($%s / %i Token(s)\n)", msg2,Dealership[i][dealerModel],vehicleNames[Dealership[i][dealerModel] - 400],FormatNumber(Dealership[i][dealerPrice]), Dealership[i][dealerToken]);
You have the ending bracket after "\n", this will mess with the next modelid. Put it before "\n".
And use Strcat for the string.
Iszcegg is offline   Reply With Quote
Old 17/07/2017, 04:48 PM   #310
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Ottawa, Canada
Posts: 1,692
Reputation: 670
Default Re: Dialogs include - Adding new styles to SAMP GUI

Quote:
Originally Posted by Unrea1 View Post
And use Strcat for the string.
Not really, since we are dealing with numbers here as well, so format is a better option.
__________________
Gammix 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 10:57 AM.


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