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) 19 hours ago, Patrick said: What is the error in debugscript? 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 1 hour ago, 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? You probably have an event for trigger load login panel ?! Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 1 hour ago, Fire Monkey said: You probably have an event for trigger load login panel ?! yes, its a custom event Link to comment
Fire Monkey Posted October 7, 2020 Share Posted October 7, 2020 Just now, Rouzbeh said: yes, its a custom event Please show me your code Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 (edited) 3 minutes ago, Fire Monkey said: Please show me your code 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 1 minute ago, Rouzbeh said: no there isn't any problem inside the code, I mentioned it in last posts... 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 5 minutes ago, Rouzbeh said: no there isn't any problem inside the code I mentioned it in last posts, its something related to windows i think... 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 3 minutes ago, Arshin said: Rouzbeh jan man Richard am mikhay biyay ts ya discord ye login panel jadid ba gui ok konim ? Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 29 minutes ago, 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. No Anyone Else? Link to comment
DiSSGen Posted October 7, 2020 Share Posted October 7, 2020 4 minutes ago, Rouzbeh said: No Anyone Else? 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 7 minutes ago, DiSSGen said: tell your players install HTML Debugger maybe your problem will be solved i'll give it a try Link to comment
Fire Monkey Posted October 7, 2020 Share Posted October 7, 2020 4 minutes ago, Rouzbeh said: i'll give it a try You can show all your events ? 1 Link to comment
Rouzbeh Posted October 7, 2020 Author Share Posted October 7, 2020 1 minute ago, Fire Monkey said: You can show all your events ? 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