I didn't want to say thanks to everyone who was helping me in my other threads because i didn't want to bump my thread up and get a cheap post count
so here, Thank You Markus, JackLKrawl, and Mixster05 for helping me out
however, I've come to a standstill again, I don't know how to word this right, so i'll start by saying here's what i'm trying to do
SCAR Code:
begin
if Players[CurrentPlayer].loc = 'End' then
begin
Case rs_GetCompassAngleDegrees of
{N} 0:Begin
XCoord:=700;
YCoord:=266;
RandomX:=1;
RandomY:=2;
end;
{W}90:begin
XCoord:=729;
YCoord:=182;
RandomX:=2;
RandomY:=1;
end;
{S}180:Begin
XCoord:=681;
YCoord:=68;
RandomX:=1;
RandomY:=2;
end;
{E}270:Begin
XCoord:=778;
YCoord:=297;
RandomX:=2;
RandomY:=1;
end;
end;
mouse(XCoord, YCoord, RandomX, RandomY, True);
FFlag(0);
Players[CurrentPlayer].loc := 'Beginning';
end;
end;
I keep getting a type mismatch error, i've been reading around for a fix and i can't seem to find the problem, however i'm not sure i can write the degrees like that
i was thinking of writing something like
and setting this value into my 'case of' function
if that works then (quick nooby question) how would i denote a negative for north, does a (-) work? so i can do
any help is much appreciated and here's a thank you in advance
Thanks!