I think you are missing GlobalVar $Angle_drift; somewhere.
$AngleVelocity is the drift angel ( positive and negative ).
With $Angle_drift=($AngleVelocity)*(-1); you make the negative value of $AngleVelocity positive and store it in $Angle_drift.
To retreive Angle_drift var, you have to write $retreiveiVar = GetCurrentPlayerVar( "Angle_drift" );
$myvar is a GLScript Var, everytime preceded with $
GetCurrentPlayerVar( idOfVar ) is a function to get internal player var, idOfVar is a string containing the id of the internal var without $
SetCurrentPlayerVar( idOfVar,value ) is a function to set internal player var ( not the builtin var, only new var ), idOfVar is a string containing the id of the internal var without $ and value is any value, string or numerical
, if i have time to write a doc, it will be better. Maybe in Setember
but even that (like some other syntax/line layouts I tried) comes up with 'IF not terminated' in the error log.
I tried your $retreiveiVar (even with different spellings - in English it should be $retrieveVar - e.g. $retrieveVar = GetCurrentPlayerVar( "Angle_drift" );) but still not working.
If I use a # before both of the open button 'drf2" lines, then the scoring part of the coding works - but then, that's the easy part.
(Currently looking on ebay for knitting needles and some nice wool).
I normally use PSPad at home (which is why I know about line number problems), but I've done a lot of work on this at work (! shhh), where I don't have PSPad (pc's tied down to what programs we can load), so been using mixture of Notepad and Word (easy to compare Screenshots and text side by side).
" issue must have crept in from Word.
Think I'll put the knitting on hold just now - looks like my eyesight needs checking first.
But your version can't work because they need an ENDIF and also because there is a logic mistake.
if tirst test is true, you are an admin and you go in THEN clause. But if you are admin it's not an obligation to be an half admin. Second test is wrong. /restart is never executed.
Gai your a life saver.. Thanks ever so much that will also help me in future when i would like to add more things similar....
and its like adding an extra paragraph in to the original paragraph isn't it?
I did a RegisteredActionSchedule for it to go off every 15 minutes but when it gets to the 15 minutes it just spams it loads of times and i dont know why this is what it looks like
Yes "paragraph" ( better to say block ) only excecute when condition is true in THEN part or false in ELSE part. And block are delimited into IF condition THEN ... ELSE ... ENDIF. unlimited imbrication can be done. to have better reading it's good to indent your code to better view every blocks. ELSE block is optionnal
0 00 * * * * *
mean at 0 second when minute is 0 do action. Action is done one shoot because there is only one 0 second at 0 mn or 0 second at 15 mn etc...
example
0 30 * * * * *
in extenso : at 0 second,30 minute, every hour, every day of week, every day, every month, every year
if you want display a message only the 25 december of every year at 0 hours, 0 minute, zero second
0 0 0 * 25 12 *
i know GLScript is a little bit complicated than standard config file ( like AIRIO ), but much powerfull if you try to understand how it work. Continue!
most script exist for lapper, better is
By SWITCH( $your_var) then is CASE the value of $your_var.
SWITCH( $your_var) CASE "!help": #is the value of $your_var openPrivButton( "help"...... openPrivButton( "help2"...... openPrivButton( "close"....... BREAK; ENDSWITCH