GetMapHistory Function

Retrieves a map from the map history list.

void GetMapHistory(int item, char[] map, int mapLen, char[] reason, int reasonLen, int& startTime)

Parameters

int item

Item number. Must be 0 or greater and less than GetMapHistorySize().

char[] map

Buffer to store the map name.

int mapLen

Length of map buffer.

char[] reason

Buffer to store the change reason.

int reasonLen

Length of the reason buffer.

int& startTime

Time the map started.

Errors

Invalid item number.