SRL Archive - OSR Help

need help


bustingbuster

2012-06-28 09:10:33

Hi everyone. The problem is that i can't use SetAngle in my script, Always giving mismatch error. But i used it correctly. Please help me.

Caotom

2012-06-28 09:12:49

Do you mind posting the actual error and what you are typing in for the SetAngle?
You should be using something like
SetAngle(0);

~Caotom

bustingbuster

2012-06-28 09:18:11

No, i am using SetAngle(false);

riwu

2012-06-28 09:35:07

From: bustingbuster
No, i am using SetAngle(false);

Always read the parameter: procedure SetAngle(Angle: Integer);
U should input an integer, to make it clearer use srl constants:
SRL_ANGLE_HIGH = 0;
SRL_ANGLE_LOW = 1;
SRL_ANGLE_NONE = 2;

bustingbuster

2012-06-28 09:47:49

No lol, I think we no need to keep =1, As SetAngle(False) is changed to SetAngle(SRL_ANGLE_LOW). Thats all. I got the answer from IRC chat.

riwu

2012-06-28 09:55:36

From: bustingbuster
No lol, I think we no need to keep =1, As SetAngle(False) is changed to SetAngle(SRL_ANGLE_LOW). Thats all. I got the answer from IRC chat.

Oh im not saying that, the formal way of doing it is SetAngle(1), but since the include created the constants which are assigned to the corresponding integers u can just use the constants (longer but clearer for other scripters to see what u are doing)

Its like how we always use GameTab(tab_Inv) rather than GameTab(25), which is easier but confusing.