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

Server crashes when passing invalid playerid in some natives #1002

Closed
NexiusTailer opened this issue Oct 11, 2024 · 1 comment
Closed

Server crashes when passing invalid playerid in some natives #1002

NexiusTailer opened this issue Oct 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@NexiusTailer
Copy link
Contributor

Describe the bug
omp server crashes when passing invalid playerid in natives AllowPlayerTeleport and IsPlayerTeleportAllowed.

To Reproduce
Steps to reproduce the behavior:

  1. Add this or similar code into your gamemode:
public OnGameModeInit()
{
	AllowPlayerTeleport(0, true);
	return 1;
}

and/or

public OnGameModeInit()
{
	IsPlayerTeleportAllowed(0);
	return 1;
}
  1. Launch omp server

Release version
Latest release version, v1.3.1.2748

@NexiusTailer NexiusTailer added the bug Something isn't working label Oct 11, 2024
@NexiusTailer
Copy link
Contributor Author

Solved in #1003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant