Jump to content

Mahone

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Mahone

  1. Devd thanks for an excellent  job.

    You have done some really great work here.

     

    I just have one small problem, when you translate traders inventory from sqf to array using the function FORMAT you are limiting the content the traders can have by ~2050 characters as there is a limit in arma2 in how long a string format can generate.

    So if you (depending on how long the classnames are) add more than 25 items to a trader the scripts bombs because the string that is in the sqf gets truncated by format.

     

    I have modified your server_traders.sqf and replaced the line:

    _myArr = call compile format ["%1",_res];

     

    with

    _myArr = call compile _res;

    thus enabling a unlimited number of items on traders.

     

    Maybe there are other places where format also should be replace.

×
×
  • Create New...