Racemaniac
Scorched GP programmer
I've run into a problem, in one part of the program i have to assign a value to a local variable of a process, if i just do a rand(0,maxvalue) everything works perfectly
if however i use a function to decide that value i sometimes get an error about either something about the type of process (TANK in this case) or that a process calls upon another process that doesn't exist...
if i raise the priority it seems to happpen less frequent (not sure, sometimes it happens fast, other times it can work for a long time without problems :s, so hard to be sure about such htings), but still happens...
is there something that can go wrong when i let a process call a function so it has to wait until that function returns a value...
btw, usually it's procediemento x no activo, and x being a pretty low number (0 or 3 or so), what could it mean?
if however i use a function to decide that value i sometimes get an error about either something about the type of process (TANK in this case) or that a process calls upon another process that doesn't exist...
if i raise the priority it seems to happpen less frequent (not sure, sometimes it happens fast, other times it can work for a long time without problems :s, so hard to be sure about such htings), but still happens...
is there something that can go wrong when i let a process call a function so it has to wait until that function returns a value...
btw, usually it's procediemento x no activo, and x being a pretty low number (0 or 3 or so), what could it mean?