Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   division by zero and access violations (https://forums.graalonline.com/forums/showthread.php?t=64371)

Warcaptain 02-26-2006 06:32 AM

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.

ZeLpH_MyStiK 02-26-2006 06:41 AM

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.

Warcaptain 02-26-2006 06:43 AM

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?

Warcaptain 02-26-2006 06:57 AM

http://graalbin.londeroth.org/97

the script in question -_-'

Warcaptain 02-26-2006 07:15 AM

it appears to be a problem with the GuiTextListCtrl because i commented that out and its not returning any errors.

Admins 02-26-2006 02:07 PM

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?

Warcaptain 02-27-2006 01:04 AM

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

Admins 02-27-2006 06:16 PM

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)

jake13jake 02-27-2006 08:25 PM

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.