Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: habi on Jun 14, 2020, 05:03 AM

Poll
Question: ... 0x08, 0x09. What is next?
Option 1: 0x10 votes: 1
Option 2: 0x07 votes: 0
Option 3: "10" votes: 0
Option 4: '10' votes: 0
Option 5: None of these votes: 4
Title: about Bytes Stream
Post by: habi on Jun 14, 2020, 05:03 AM
We client script and use stream to pass data. So a quick question.
Especially in blank server, store/main.nut we make something like following,
(https://i.imgur.com/mKheYHI.png)
I used to think how far we can go on numbering. All about the answer flashed to me yesterday, while working with some streams.

I will tell after poll is finished
Title: Re: about Bytes Stream
Post by: NicusorN5 on Jun 14, 2020, 09:11 AM
It is:
0x01
0x02
0x03
0x04
0x05
0x06
0x07
0x08
0x09
0x0A
0x0B
0x0C
0x0D
0x0E
0x0F

0x10
Title: Re: about Bytes Stream
Post by: habi on Jun 14, 2020, 01:05 PM
yes
Not only that,  the 0x0a = = 0xa, i checked.
Also, if we number them as integers like 1,  2,  3...255 the effect is same. We can go upto 255
Title: Re: about Bytes Stream
Post by: DizzasTeR on Jun 14, 2020, 01:17 PM
0x0a = 0xa because 01 = 1