Market Orders

Nick87

Member
I am having trouble using the EVE:GetMarketOrders[] command. I can get the myorders one to work fine, but for some reason the one for market orders returns errors. The script I'm using (a simple one so I can figure out why it's messing up) is below with the error below that. If anyone could help It'd be greatly appreciated.

function main()
{
variable index:marketorder Orders
variable int x = 28576

EVE:ClearMarketOrderCache
echo ${x}

EVE:FetchMarketOrders[${x}]
while !${EVE:GetMarketOrders[Orders, ${x}]}
{
wait 10
echo "waiting"
}
echo ${Orders.Used} Orders Found

}


Error:Non-numeric variable encountered in '!${EVE:GetMarketOrders[Orders, ${x}]}': ${EVE:GetMarketOrders[Orders, ${x}]}=EVE @!${EVE:GetMarketOrders[Orders, ${x}]
Error:Failed to calculate result @!${EVE:GetMarketOrders[Orders, ${x}]}
 

CyberTech

Second-in-Command
Staff member
I am having trouble using the EVE:GetMarketOrders[] command. I can get the myorders one to work fine, but for some reason the one for market orders returns errors. The script I'm using (a simple one so I can figure out why it's messing up) is below with the error below that. If anyone could help It'd be greatly appreciated.

function main()
{
variable index:marketorder Orders
variable int x = 28576

EVE:ClearMarketOrderCache
echo ${x}

EVE:FetchMarketOrders[${x}]
while !${EVE:GetMarketOrders[Orders, ${x}]}
{
wait 10
echo "waiting"
}
echo ${Orders.Used} Orders Found

}


Error:Non-numeric variable encountered in '!${EVE:GetMarketOrders[Orders, ${x}]}': ${EVE:GetMarketOrders[Orders, ${x}]}=EVE @!${EVE:GetMarketOrders[Orders, ${x}]
Error:Failed to calculate result @!${EVE:GetMarketOrders[Orders, ${x}]}
while !${EVE:GetMarketOrders[Orders, ${x}]} should be
while !${EVE:GetMarketOrders[Orders, ${x}](exists)}

See evebot/testcases/isxeve/eve_getmarketorders.iss
 
Top Bottom