![]() |
division by zero and access violations
when i set the width of a scroll control to width=LoginWindow.width/3; it gives me the division by zero error constantly
it sucks :-\ so... this isnt cool because its embedded inside the LoginWindow and it SHOULD have a width... but.. maybe not. |
Even if the LoginWindow doesnt' have a width, it's still 0/3, and would thus return 0. It shouldn't have a division by zero error.
|
well something is returning the error.. and causing me to not be able to load
im trying to figure out what it is.. now its saying 'privilidged instruction' wtf? |
|
it appears to be a problem with the GuiTextListCtrl because i commented that out and its not returning any errors.
|
May be there is a problem because you don't set a profile ? I will need to debug it, what is the name of the script on Mana Realms?
|
script is *login_ERROR
its giving me a lot of problems :-\ for some reason savelines() isnt working right the SAME exact commands used in function onPlayerEnters() do not work when they are in a function called later in the script. its so frustrating.. but theres some problem with savelines :-\ so.. that needs to be fixed too this is all in GUI/Weapon: *login_ERROR |
Ok checked it, the problem is that you are not setting profiles for the gui controls, so it has problems to calculate the size of the scrollbar and such. The crash / error is fixed in the next version of v4, it would still be good to set some profile to the controls (profile = GuiScrollProfile or so).
'savelines' is saving an array into a file. Checking your script, I guess you would need to do something like: temp.var = {params[1]}; temp.var.savelines(filename,doappend) |
Stefan, do you think you could make it when you changeimgpart with a width or height of zero, that it would just show nothing?
|
All times are GMT +2. The time now is 03:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.