You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{$CLEO}
{$USE SAMPFUNCS}
NOP
if File fileAHandle = open_file {filePathName} "cleo:\cleo_plugins\SA.Math.cleo" {mode} FileMode.ReadBinary
then
// do something
close_file fileAHandle
end
{0A93:} terminate_this_custom_script
Case 2: Use enum as conditional statement
{$CLEO}
{$USE text}
{$USE SAMPFUNCS}
NOP
int compareStr
// do something to store a stringpointer at comparePtr
if compareStr == FileMode.AppendText // <-- synonymous to Text.IsEqual(comparePtr,FileMode.AppendText)
then // both strings are equal
else // both strings aren't equal
end
terminate_this_custom_script
Case 3: Use enum as a constant
{$CLEO}
{$USE SAMPFUNCS}
NOP
const FILEMODE = FileMode.WriteBinary
if File fileAHandle = open_file {filePathName} "cleo:\cleo_plugins\SA.Math.cleo" {mode} FILEMODE
then
// do something
close_file fileAHandle
end
terminate_this_custom_script
Activity