Need help?
Create a topic in the appropriate section
Don't write everything in the chat!Take a look at the marketplace
There you can buy
everything related to game serversDon't want a ban?
Please read our rules
Don't disturb the order!Sell or buy?
Use services of the guarantor
We will make your deal safe
- 0
-
Our picks
Здравствуйте! Чем можно заменить данное выражение? TDateTime dt видимо не поддерживается или библиотеки нет для даты и времени... Подскажите пожайлуста
if ( БЛАБЛА[ v_X ].GetCommand() == v_Command )
{
TDateTime dt; // При запуске локального сервера пишет на эту строчку: Broken expression (missing ';?)
TFormatSettings FormatSettings;
FormatSettings.DateSeparator = '-';
FormatSettings.TimeSeparator = ':';
FormatSettings.LongDateFormat = "YYYY-MM-DD";
FormatSettings.ShortDateFormat = "YYYY-MM-DD";
FormatSettings.ShortTimeFormat = "HH:MM:SS";
FormatSettings.LongTimeFormat = "HH:MM:SS";
if (TryStrToDateTime(БЛАБЛА[ v_X ].GetDateUse() + " " + БЛАБЛА[ v_X ].GetTimeUse(), dt, FormatSettings)) {
TDateTime delta = TDateTime.CurrentTime() - dt;
if (delta > БЛАБЛАБЛАБЛА[ v_I ].GetPauseTime()) {
continue;
}
}
БЛАБЛАБЛАБЛАБЛА.SendMessage( v_PlayerBase, " ");
return;
}
Edited by Neentell (see edit history)Share this post
Link to post
Share on other sites