Get the name of the floor by its index.

Call:

int ires = ac_request("get_floor_name_by_floor_index", int iStoryIndex);



The floor name is read by calling ac_getstrvalue();

Returns to ires -1 if there is no floor with this index or an error occurred.

Returns 0 on success.


Example:

Get the name of the floor at index 1 and display it in the message box.


string sStoryName;
int ires = ac_request("get_floor_name_by_floor_index", "2nd floor");
if(ires == 0)
{
sStoryName = ac_getstrvalue();
coutvar << sStoryName;
}