Re: [Gambas-user] Extra gb.newline ?

2011-06-09 Thread tobias
hi, without having seen the code - i think it's all ok with your code - i'd say that the problem is in creation of the text file. editors like gedit are likely to add a newline at the end of file so it is shuffled into the second file, too. try to create your file like this in terminal: echo -n

[Gambas-user] Extra gb.newline ?

2011-06-09 Thread Jussi Lahtinen
Hi! I made small simple command line program to shuffle data (see attachment), but there is strange problem. For some reason extra newline is inserted. If I run this program with command; ./Shuffler.gambas test.txt test2.txt , Then data like this; 1,2,3,4,5,6,7,8,9,10 Turns into something like t

Re: [Gambas-user] arithmetic operations on dates and times

2011-06-09 Thread Jussi Lahtinen
I'm not sure I understand correctly, but this code adds one year to current date and prints it. Print Date(Year(Now) + 1, Month(Date), Day(Now), Hour(Now), Minute(Now), Second(Now)) But I don't know what is upper limit of accepted year. Maybe you want to use integer or even long variables instead

Re: [Gambas-user] arithmetic operations on dates and times

2011-06-09 Thread Caveat
Apologies if I'm missing something obvious here, or have maybe misunderstood the concept of 'scaling' the time... but wouldn't you need to account for your scale factor also in the client time calculation? So for your client to know what "now" is in the game world, you'd need server_time + (( Tim