03-04-2025, 12:15 PM
Hi TheLastMan
do you have a pizza?
What kind of pizza?
Welcome in QB64pe forum!
I have little experience in TCP/IP because I'm studing it but it seems well supported in QB64pe.
here a seach in the forum
search for TCP/IP posts
youl'll find the demo of SmcNeill for a banner walking between two windows, other code stuff and some my simple code, both in programs and in games of the section code and stuff.
I found some conceptual bugs into your code...
GRL Game Received Long
GSD Game Send Double
GRF Game Received Double (?? F for what?)
about this stuff:
but
1. SENDEDLONGSD() starts from 1 not from 0 so the FOR must start from 1
2. you must assure that z-1 is never <=0 or the index of your array will shift in the negative values during the run of the program.
do you have a pizza?
What kind of pizza?
Welcome in QB64pe forum!
I have little experience in TCP/IP because I'm studing it but it seems well supported in QB64pe.
here a seach in the forum
search for TCP/IP posts
youl'll find the demo of SmcNeill for a banner walking between two windows, other code stuff and some my simple code, both in programs and in games of the section code and stuff.
I found some conceptual bugs into your code...
- but as first I must let see you that the Client output is a fake output, you print the client variables just after sent the request of data, no time for the system to process the TCP/IP communication with the server!
- About code, if you like keywords UPPERCASE it is ok, I find overwelming the use of _ that you know is useful in OLD QBasic to write a line too long ( peharps more than 255 characters), but this limit is no present in QB64pe!
- about commands:
GRL Game Received Long
GSD Game Send Double
GRF Game Received Double (?? F for what?)
about this stuff:
Code: (Select All)
Z = UBOUND(SENDEDLONGSG): _
if Z <> D then: FOR x = 0 TO Z STEP 1: SWAP SENDEDLONGSG(D), SENDEDLONGSG(x): NEXT: _
REDIM _PRESERVE SENDEDLONGSG(Z - 1): 'GAME RECEIVE LONG
it seems to me that your goal is to have a LIFO stack...but
1. SENDEDLONGSD() starts from 1 not from 0 so the FOR must start from 1
2. you must assure that z-1 is never <=0 or the index of your array will shift in the negative values during the run of the program.

