Rouzbeh Posted October 6, 2020 Share Posted October 6, 2020 (edited) Hii i have a weird problem with gui-Browser, i'm using [HTML/CSS/JavaScript] in Login Panel, but browser simply doesn't show up for some players so they can't login and so on i used this: local screenWidth, screenHeight = guiGetScreenSize() local page = "http://mta/local/index.html" initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, true, false) theBrowser = guiGetBrowser(initBrowser) screenW, screenH = guiGetScreenSize() addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, page) what can cause this? Edited October 6, 2020 by Rouzbeh Link to comment
Moderators Patrick Posted October 6, 2020 Moderators Share Posted October 6, 2020 What is the error in debugscript? But one end and ) is missing at the end. addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, page) end) Link to comment
DiSSGen Posted October 6, 2020 Share Posted October 6, 2020 try this sx, sy = guiGetScreenSize() link = "http://mta/local/index.html" brwC = guiCreateBrowser(0, 0, sx, sy, true, false, false) browser = guiGetBrowser(brwC) addEventHandler("onClientBrowserCreated", browser, function() loadBrowserURL(source, link) end) -- #irm Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 (edited) On 06/10/2020 at 09:45, Patrick said: What is the error in debugscript? Expand as i said that doesn't work for some players not all, and for me it's just ok and there is no debug error, becuz it's client-side for those players i think there must be something on windows apps/settings they are using? is it possible? Edited October 7, 2020 by Rouzbeh Link to comment
Fire Monkey Posted October 7, 2020 Share Posted October 7, 2020 On 07/10/2020 at 04:40, Rouzbeh said: as i said that doesn't work for some players not all, and for me it's just ok and there is no debug error, becuz it's client-side for those players i think there must be something on windows apps/settings they are using? is it possible? Expand You probably have an event for trigger load login panel ?! Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 On 07/10/2020 at 06:17, Fire Monkey said: You probably have an event for trigger load login panel ?! Expand yes, its a custom event Link to comment
Fire Monkey Posted October 7, 2020 Share Posted October 7, 2020 On 07/10/2020 at 07:23, Rouzbeh said: yes, its a custom event Expand Please show me your code Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 (edited) On 07/10/2020 at 07:24, Fire Monkey said: Please show me your code Expand no there isn't any problem inside the code I mentioned it in last posts, its something related to windows i think... Edited October 7, 2020 by Rouzbeh Link to comment
Fire Monkey Posted October 7, 2020 Share Posted October 7, 2020 On 07/10/2020 at 07:26, Rouzbeh said: no there isn't any problem inside the code, I mentioned it in last posts... Expand No, I have a trick to load the login page for all players. If you give me your code, I can help you. Link to comment
Arshin Posted October 7, 2020 Share Posted October 7, 2020 On 07/10/2020 at 07:26, Rouzbeh said: no there isn't any problem inside the code I mentioned it in last posts, its something related to windows i think... Expand Rouzbeh jan man Richard am mikhay biyay ts ya discord ye login panel jadid ba gui ok konim ? Link to comment
DiSSGen Posted October 7, 2020 Share Posted October 7, 2020 On 07/10/2020 at 07:33, Arshin said: Rouzbeh jan man Richard am mikhay biyay ts ya discord ye login panel jadid ba gui ok konim ? Expand Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 On 07/10/2020 at 07:29, Fire Monkey said: No, I have a trick to load the login page for all players. If you give me your code, I can help you. Expand No Anyone Else? Link to comment
DiSSGen Posted October 7, 2020 Share Posted October 7, 2020 On 07/10/2020 at 07:59, Rouzbeh said: No Anyone Else? Expand tell your players install HTML Debugger maybe your problem will be solved Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 On 07/10/2020 at 08:07, DiSSGen said: tell your players install HTML Debugger maybe your problem will be solved Expand i'll give it a try Link to comment
Fire Monkey Posted October 7, 2020 Share Posted October 7, 2020 On 07/10/2020 at 08:15, Rouzbeh said: i'll give it a try Expand You can show all your events ? 1 Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 On 07/10/2020 at 08:21, Fire Monkey said: You can show all your events ? Expand no Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now