nickk888samp / dialog-pages Goto Github PK
View Code? Open in Web Editor NEWA library for SA-MP that allows you to create pages for dialogs
A library for SA-MP that allows you to create pages for dialogs
error 035: argument type mismatch (argument 4)
line: return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
tested on new version.
Working fine tho but then I check my server.log it shows me this.
[02:45:36] [debug] Parameter count corrections: [02:45:36] [debug] [02:45:36] [debug] The 1st mangled argments (e.g.
<1073741823 arguments>) below should read
<5 arguments>[02:45:36] [debug] [02:45:36] [debug] Run time error 4: "Array index out of bounds" [02:45:36] [debug] Attempted to read/write array element at negative index -2 [02:45:36] [debug] AMX backtrace: [02:45:36] [debug] #0 006f791c in OnDialogResponse (playerid=0, dialogid=6182, response=1, listitem=-2, inputtext[]=@1e9ff5d8 "Next") at ./includes/OnDialogResponse.pwn:3233 [02:45:36] [debug] #1 0001789c in public OnDialogResponse (0, 6182, 1, 10, 513799640) at D:\05_Desktop\EGRP-master\pawno\include\YSI_Coding\y_timers\..\..\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\y_cgen.inc:127 [02:45:55] [debug] [02:45:55] [debug] Parameter count corrections: [02:45:55] [debug] [02:45:55] [debug] The 1st mangled argments (e.g.
<1073741823 arguments>) below should read
<5 arguments> [02:45:55] [debug] [02:45:55] [debug] Run time error 4: "Array index out of bounds" [02:45:55] [debug] Attempted to read/write array element at negative index -2 [02:45:55] [debug] AMX backtrace: [02:45:55] [debug] #0 006f791c in OnDialogResponse (playerid=0, dialogid=6182, response=1, listitem=-2, inputtext[]=@1e9ff5d8 "Prev") at ./includes/OnDialogResponse.pwn:3233 [02:45:55] [debug] #1 0001789c in public OnDialogResponse (0, 6182, 1, 8, 513799640) at D:\05_Desktop\EGRP-master\pawno\include\YSI_Coding\y_timers\..\..\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\..\y_cgen\y_cgen.inc:127 [02:45:57] [part] Yoshimoto_Yagire has left the server (0:1)
I'm currently having an issue when I updated to the latest version, in which I need the inputtext string in the response function but I'm unable to obtain it, this is probably a limitation due to how callbacks work.
You're already storing all the info in arrays, so I suggest adding an API to pass in a buffer and get the text from the selected listitem, i cannot think however of an easy way of limiting its usage only within a positive response:
stock GetDialogInputText(playerid, listitem, inputtext[])
//or
stock DP_GetInputText(playerid, listitem, inputtext[])
//or
stock PagesGetInputText(playerid, listitem, inputtext[])
//or
stock DialogPagesGetInputText(playerid, listitem, inputtext[])
//or any really
stock GetInputTextDialogPages(playerid, listitem, inputtext[])
It is your call, but if there's actually a way to get the text, please let me know
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.