18.05.2016, 18:56
This is incorrect!
hoIDinfo = Enum
[hoID] = Value of enum
hoIDinfo = Enum
[hoID] = Value of enum
Код:
enum hoIDinfo { hoID }; // enum new Variable[hoIDinfo]; // variable
Код:
stock HotelPath(ho) { new hotel[64], hote = ho; hotel = Variable[hoID] +1; format(hotel, 30, "Hotels/%d.ini", hotel); Variable[hoID] ++; // multiplying return hotel; }