Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Content: network_create_server_raw() page's example incorrectly uses network_create_server() #7696

Closed
Junk-Repo opened this issue Sep 18, 2024 · 0 comments
Assignees
Labels
docs-bug GameMaker Manual Bugs

Comments

@Junk-Repo
Copy link

Description

Given the description for the example:

"The above code will try and create a server using TCP through port 6510. If that port is unavailable, it will then loop through the ports to find one that is."

The while scope should be attempting to network_create_server_raw rather than network_create_server.

Original:

var port = 6510;
server = network_create_server_raw(network_socket_tcp, port, 32);
while (server < 0 && port < 65535)
{
    port++
    server = network_create_server(network_socket_tcp, port, 32);
}

Intended:

var port = 6510;
server = network_create_server_raw(network_socket_tcp, port, 32);
while (server < 0 && port < 65535)
{
    port++
    server = network_create_server_raw(network_socket_tcp, port, 32);
}

Manual Link

https://manual.gamemaker.io/monthly/en/index.htm#t=GameMaker_Language%2FGML_Reference%2FNetworking%2Fnetwork_create_server_raw.htm

@Junk-Repo Junk-Repo added the docs-bug GameMaker Manual Bugs label Sep 18, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Sep 19, 2024
@YYDan YYDan changed the title Example Code typo in 'network_create_server_raw' Manual Content: network_create_server_raw() page's example incorrectly uses network_create_server() Sep 19, 2024
gurpreetsinghmatharoo added a commit to YoYoGames/GameMaker-Manual that referenced this issue Sep 19, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Team Workload Sep 19, 2024
@gurpreetsinghmatharoo gurpreetsinghmatharoo moved this from Done to Ready for QA in Team Workload Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-bug GameMaker Manual Bugs
Projects
Status: Ready for QA
Development

No branches or pull requests

2 participants