Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: soldat-game on December 18, 2016, 10:10:50 am
-
procedure DDD();
var test2:integer;
begin
test2:=abs(-22);
end;
Error: Type mismatch
-
abs returns floating point value, can't be assigned to integer directly. Try
if x < 0 then x := -x;
-
http://www.freepascal.org/docs-html/rtl/system/abs.html
Work if im use single.