Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive
Threaded Mode
Dialogs Problem
Sid_Alexander
Huge Clucker
Posts: 237
Threads: 34
Joined: Apr 2011
Reputation:
0
#1
15.05.2011, 23:22
hey guys, i made a Dialog like /shop in game, which allows people to buy stuff, but the problem i see is when people hit Ok they buy a weapon, but even if they hit cancel they buy a weapon, can you help?
Find
Reply
lavamike
Huge Clucker
Posts: 384
Threads: 20
Joined: Mar 2008
Reputation:
0
#2
16.05.2011, 01:14
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
The 'response' tells you what button they pressed.
1 for first button and 0 for second button
So if Ok is the first button and Cancel is the 2nd button you could do like:
if(response == 0) return 1;
Source:
https://sampwiki.blast.hk/wiki/OnDialogResponse
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 2 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive