Simba Code:Procedure StateFunc(Var Text: string);
Begin
State := Text ;
End;
Procedure WithdrawLogs;
Begin
StateFunc('Withdrawing Logs');
Withdraw(0,0,0);
End;
Im trying to use a procedure I made called 'StateFunc' (as it was originally a function) to determine what 'state' the script is in.
The procedure, Changes the 'state' variable (a string) to whatever the input variable of the procedure is. It Then runs a progress report so that the state gets printed to smart and into the debug box.
It basically stops me having to keep writing:
State := 'xxx' ;
ProgressReport;
So instead i can just write
StateFunc('xxx');
However currently when it tries to compile it says 'expected variable' and highlights the first 'statefunc' procedure ( the part during the banking procedure not the actual statefunc procedure).
What am i doing wrong?





Reply With Quote



