As noted by @Bengismo, according to the guides " .find(item) will only work on arrays that are in ascending order ", so you must sort them first to put in ascending order and then use .find.
This works:
// Project: Test find array
// Created: 2020-05-02
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Test find array" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
links as integer[3] = [65,46,44,25]
links.sort()
do
s$ = "["
for i = 0 to links.length
s$ = s$ + str(links[i]) + ","
next
print(s$+"]")
print("Find 65: "+str(links.find(65)))
print("Find 46: "+str(links.find(46)))
print("Find 44: "+str(links.find(44)))
print("Find 25: "+str(links.find(25)))
sync()
loop