Giter VIP home page Giter VIP logo

dialog-pages's People

Contributors

nickk888samp avatar wiger3 avatar zantetsukengt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dialog-pages's Issues

Parameter count corrections:

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)

Version 3.0.0 inputtext limitation

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.