Hi,
If I run the following code:
Global DeviceName$
Global SBL, SBT, SBR, SBB // SCREEN BOARDER VARIABLES
Global DW, DH // DEVICE WIDTH AND HEIGHT VARIABLES
Global DDPI
SBL = GetScreenBoundsLeft() // LEFT BOARDER
SBT = GetScreenBoundsTop() // TOP BOARDER
SBR = GetScreenBoundsRight() // RIGHT BOARDER
SBB = GetScreenBoundsBottom() // BOTTOM BOARDER
DW = GetDeviceWidth()
DH = GetDeviceHeight()
DDPI = GetDeviceDPI()
DeviceName$ = GetDeviceBaseName()
do
DeviceMenuSize()
Print(DeviceName$)
Print( ScreenFPS() )
Sync()
loop
Function DeviceMenuSize()
If DeviceName$ = "iPhone" Or "android"
DrawBox(SBL, SBT, SBR, SBB, MakeColor(10, 0, 150), MakeColor(10, 0, 150), MakeColor(10, 0, 150), MakeColor(10, 0, 150), 1)
Else
DrawBox(SBL - 50, SBT - 50, SBR - 50, SBB- 50, MakeColor(10, 0, 150), MakeColor(10, 0, 150), MakeColor(10, 0, 150), MakeColor(10, 0, 150), 1)
Endif
EndFunction
I get this error:
main.agc:57: error: Incompatible types "Integer" and "String"
I can't figure out why
If I take the "android" out it compiles fine, maybe I need to check for each one seperately?
Gigabyte Board/ AMD 3.3 Ghtz Quad core/8GB Ram/Nvidia Geforce 1080 GTX 8GB/1TB Western Dig. SSD/Windows 10 Home/Dark Basic Pro 9Ex
No one cares how much you know until they know how much you care.