I'm sure this is a simple fix but say you do a
/if "$char(ismoving)"=="TRUE"
you will get an error, yet
/if "$char(ismoving) "=="TRUE"
works.. ( space between the ')' and '"'
Moderator: MacroQuest Developers


Code: Select all
// $char(speed)
} else if (!strncmp("char(speed)",szVar,[color=red]11[/color])) {
CHAR szTemp[MAX_STRING] = {0};
i+=10;
sprintf(szTemp,"%1.2f",pChar->SpeedRun);
strcat(szOutput,szTemp);
// $char(ismoving)
} else if (!strncmp("char(ismoving)",szVar,14)) {
[color=red]i+=13;[/color]
if (gbMoving && (pChar->SpeedRun==0.0f)) {
strcat(szOutput,"TRUE");
} else {
strcat(szOutput,"FALSE");
}