Why this simple script does not compile?
3 posts
• Page 1 of 1
Why this simple script does not compile?
Help here, please?
Seems I did not udnerstand the language yet.
Why is this wrong?
fix32 R = pow(abs(get_val(axis)),abs(get_val(axis)));
if( R < 0 ) R = -R;
GPC error: PIPs_v3.gpc(108): Illegal operation '<'.
GPC: GPC Compile ABORTED with 0 warning(s) and 1 error(s).
Seems I did not udnerstand the language yet.
Why is this wrong?
fix32 R = pow(abs(get_val(axis)),abs(get_val(axis)));
if( R < 0 ) R = -R;
GPC error: PIPs_v3.gpc(108): Illegal operation '<'.
GPC: GPC Compile ABORTED with 0 warning(s) and 1 error(s).
-
thedude - Staff Sergeant
- Posts: 12
- Joined: Wed Apr 10, 2019 8:09 pm
Re: Why this simple script does not compile?
Ok, found.
Either of these will compile:
if( R < (fix32)0 ) R = -R;
if( R < 00.00 ) R = -R;
Either of these will compile:
if( R < (fix32)0 ) R = -R;
if( R < 00.00 ) R = -R;
-
thedude - Staff Sergeant
- Posts: 12
- Joined: Wed Apr 10, 2019 8:09 pm
Re: Why this simple script does not compile?
thedude wrote:Ok, found.
Either of these will compile:
if( R < (fix32)0 ) R = -R;
if( R < 00.00 ) R = -R;
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 179 guests