Sigrian Posted July 2, 2012 Share Posted July 2, 2012 I have this small problem regarding Writeln, is it possible to put text and variables in one function? I remember learning Turbo Pascal at school and this was working for sure: [...] var x : Integer; [...] WriteLn('Value of x = 'x); [...] Scar on the other hand gives me this: Complier Error Invalid number of parameters Is there any way of making it possible in Scar? For now I'm just using: WriteLn('Value of x ='); WriteLn(x); I wanted to make it more clear though for putting it in one line. Thanks Quote Link to comment Share on other sites More sharing options...
LordJashin Posted July 2, 2012 Share Posted July 2, 2012 SCAR uses Pascal Script. There is no pointers or multi-threading available in SCAR. So doing Value of, pointed by, address of. Not possible with SCAR. You would have to convert the Integer to a String. Like this: [sCAR] var I: Integer; begin I := 5; WriteLn(IntToStr(I) + ' welcome to the forums'); end. [/sCAR] Quote Link to comment Share on other sites More sharing options...
Sigrian Posted July 3, 2012 Author Share Posted July 3, 2012 Thanks a lot =) Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 3, 2012 Share Posted July 3, 2012 Another possible way of doing this... [scar]var I: Integer; begin I := 5; WriteLn(Format('%d welcome to the forums', )); end.[/scar] Quote Link to comment Share on other sites More sharing options...