MyChat Scripts Engine: StrToInt64
"For developers", "Server scripts", "Functions description", "Converting types", "StrToInt64".
Converting a text string to a 64-bit integer with an optional character.
Syntax
function StrToInt64(sSt: string): int64;
Parameters and return values
Parameter |
Type |
Value |
sSt |
string |
source string. |
Function result
64-bit integer that corresponds to the transmitted string. If the conversion fails, the function returns 0.
Example
begin
mLogScript(IntToStr(StrToInt64('74722777157')), '');
mLogScript(IntToStr(74722777157), '');
end.
Script work result
[18:39:13] (Log "TestStrToInt"): 74722777157
[18:39:13] (Log "TestStrToInt"): 74722777157