SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/11/2019, 02:26 PM   #1
parfumat
Little Clucker
 
Join Date: Sep 2019
Posts: 9
Reputation: 0
Default Dialogs not working

Hello guys! Can u help me please ? I have a server and 2 filescripts in it: Admin and Clan. If I stop the Admin fs , dialogs from Clan fs are working , but when I start the Admin fs, Clan dialogs not working.

This is OnDialogResponse from Admin fs : https://pastebin.com/CfkSv5kH

What is wrong with it ? I dont get it....
parfumat is offline   Reply With Quote
Old 03/11/2019, 02:29 PM   #2
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,478
Reputation: 1634
Default Re: Dialogs not working

Returning 0 in this callback will pass the dialog to another script in case no matching code were found in your gamemode's callback.
It is always called first in filterscripts so returning 1 there blocks other filterscripts from seeing it.

Didnt look at the code but probably wrong return handling. Above text is from samp wiki (OnDialogResponse)

Edit:
Just looked. Indeed wrong return handling close the callback with return 0
__________________
Do not click on this URL -It is secret information
RIP Slayer 1981-2019 \m/
Kwarde is offline   Reply With Quote
Old 03/11/2019, 02:34 PM   #3
parfumat
Little Clucker
 
Join Date: Sep 2019
Posts: 9
Reputation: 0
Default Re: Dialogs not working

thank u but, the last one "return 1" need to turn to 0 ? or wich one ?
parfumat is offline   Reply With Quote
Old 03/11/2019, 02:42 PM   #4
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 375
Reputation: 87
Default Re: Dialogs not working

Quote:
Originally Posted by parfumat View Post
thank u but, the last one "return 1" need to turn to 0 ? or wich one ?
return 0
__________________
Lokii is offline   Reply With Quote
Old 03/11/2019, 02:46 PM   #5
parfumat
Little Clucker
 
Join Date: Sep 2019
Posts: 9
Reputation: 0
Default Re: Dialogs not working

Yes now it works <3 thank u guys
parfumat 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
few dialogs are not working. verlaj Scripting Help 8 07/06/2014 12:45 PM
dialogs not working ic3cr3am Scripting Help 3 05/12/2013 08:53 PM
Dialogs not working. RandomDude Scripting Help 6 11/07/2013 04:33 PM
Not working dialogs! x96664 Server Support 7 21/06/2012 08:54 PM
Dialogs Not Working X-Box Scripting Help 4 17/02/2012 12:00 PM


All times are GMT. The time now is 01:47 AM.


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