Raised This Month: $51 Target: $400
 12% 

Solved sorting players


Post New Thread Reply   
 
Thread Tools Display Modes
azalty
AlliedModders Donor
Join Date: Feb 2020
Location: France
Old 09-11-2021 , 08:00   Re: sorting players
Reply With Quote #11

Quote:
Originally Posted by Hennesy View Post
added Queue:
PHP Code:
int i g_hQueue.Push(GetClientUserId(iClient)); 

g_hQueue.Get returns 0 index in this case, but should return userid -> then converts userid to index - and we are already working with it. But it returns 0
There seems to be a problem indeed, could you share the entire code? If you don't want to make it public, you can add me on discord so we can sort it out
__________________
GitHub | Discord: @azalty | Steam
azalty is offline
Hennesy
Member
Join Date: Nov 2018
Location: Czech Republic
Old 09-11-2021 , 08:04   Re: sorting players
Reply With Quote #12

Quote:
Originally Posted by azalty View Post
There seems to be a problem indeed, could you share the entire code? If you don't want to make it public, you can add me on discord so we can sort it out
Yes, can you give your discord?
__________________
I'm sorry for my english
Hennesy is offline
Hennesy
Member
Join Date: Nov 2018
Location: Czech Republic
Old 09-11-2021 , 10:31   Re: sorting players
Reply With Quote #13

Thanks for the solution azalty.

It turned out to be much easier than I thought.

I needed to use direct obtaining of g_hQueue.Length size in loops.
__________________
I'm sorry for my english
Hennesy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode