@emistry price is working properly but the array is the problem,
when i put it like this its working, but i need to compare .@id[.@index] with a couple of mvp ids and i cant make it work
setarray .NoMvp_ids[0],4001,4002;
// for( set .@i,0; .@i<getarraysize(.NoMvp_ids); set .@i,.@i+1 ) {
if(.@type == 6 && .@id[.@index] == 4001 )
{
.@total_cost = 0;
.@total_cost += ( (.@price_buy[.@index] ) + 25000000);
}
else
{
.@total_cost = 0;
.@total_cost += ( (.@price_buy[.@index] ) + 1000000);
}
// }