SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/08/2019, 12:46 PM   #1
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 19
Reputation: 0
Cool easyDialog or OnDialogResponse

What is good easyDialog or OnDialogResponse i dont know what is different help me what should i use!
__________________
KID
Z3nx31L is offline   Reply With Quote
Old 15/08/2019, 01:08 PM   #2
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 264
Reputation: 19
Default Re: easyDialog or OnDialogResponse

Easy Dialog works like

Code:
dialog_show(playerid, dialogid, dialog type, header, content, button1, button2);


DIALOG:dialogid(...)
{

  // content
   return 1;
}
Whereas OnDialogResponse
Code:
ShowPlayerDialog(playerid, ... );

public OnDialogResponse(...)
{
   if(dialogid == dialog1)
   {
       // content
     return 1;
   }
   return 1;
}

i prefer OnDialogResponse, so that all dialogs will be placed in one callback instead separate functions.
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!
SiaReyes is offline   Reply With Quote
Old 15/08/2019, 01:13 PM   #3
Vizi10
Big Clucker
 
Join Date: May 2017
Location: Iran
Posts: 145
Reputation: 1
Default Re: easyDialog or OnDialogResponse

easyDialog.inc
See post description.
It explains the difference!
Vizi10 is offline   Reply With Quote
Old 15/08/2019, 02:41 PM   #4
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 19
Reputation: 0
Default Re: easyDialog or OnDialogResponse

If i use easyDialog.inc in my main gamemodes is working but if i use on gamemodes/jobs/truck is not working
__________________
KID
Z3nx31L is offline   Reply With Quote
Old 15/08/2019, 05:10 PM   #5
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,020
Reputation: 115
Default Re: easyDialog or OnDialogResponse

Quote:
Originally Posted by Z3nx31L View Post
If i use easyDialog.inc in my main gamemodes is working but if i use on gamemodes/jobs/truck is not working
If its not working, it means you are using it wrong.
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 16/08/2019, 12:37 PM   #6
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 19
Reputation: 0
Default Re: easyDialog or OnDialogResponse

aw i will using normal dialog xD
__________________
KID
Z3nx31L 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
easyDialog v4yne1 Scripting Help 8 16/03/2019 11:06 PM
easyDialog vs OnDialogResponse CodeStyle175 Scripting Help 5 07/07/2018 07:50 AM
help easydialog.inc Jihanz Scripting Help 2 29/03/2017 01:39 PM
easydialog.inc DaniceMcHarley Scripting Help 6 29/12/2016 11:13 AM
easyDialog.inc NviDa Scripting Help 7 27/04/2014 12:37 PM


All times are GMT. The time now is 12:44 AM.


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