y_commands BUG after 500+ playerid (includes 500th)
#1

Hello to all scripters.

I need help, and only you can help me. Although, I've my own samp server, and I made a party about 1 hour ago, I crossed the number of 500 players (they were actually 776 players). Everything worked fine for me (because I wasn't 500+ playerid), but... The rest of the players, who had 500+ id - they were bugged. The player who has 500+ ID couldn't actually use commands, but everything rest works fine. I was trying to find in my script (made from 0) what's the problem but I didn't find anything yet. This isn't first time, actually its second. And it's bugged as like as it was when we first time crossed the number of 500th.
PlayerTextdraws, everything rest, maps, and so on, as i said looks good and works good.
I try to figure it out, but I came to my second issue (commands). They aren't working after 500th ID as I said.
I think that it's because of y_commands include, because I use the whole YSI pack, and everything works good, but commands not. I had redefined MAX_PLAYERS to 1000, and everything that needs, but I really don't know how to fix this. I put that redefine just after a_samp include, and before the rest of my includes.

When player (500+) types command, it just doesn't react as it reacts when its under 500th id. Something like return 1; idk.
Yes, and I forgot, the save and load accounts works fine after 500th id, as I told you. Just commands!

So, if you can help me, help.
Thank you.
Reply
#2

Delete gamemode and start new gamemode.
Reply
#3

Contact BMatt please
Reply
#4

How should BMatt be related to this in any way? He's reporting a problem that might be caused by y_commands.

Anyways, i don't know what your problem is sorry, a search didn't return any results either.
If you think it's caused by y_commands you could try another command processor, like zcmd.
Reply
#5

@CalvinC - thanks for your time. I sent a PP to ******. Expecting what he is going to say.
Reply
#6

As Calvin said, what happens when you use ZCMD? I have a feeling that there is a #define MAX_PLAYERS 500 line somewhere in YSI / y_commands.
Reply
#7

Tried to find something like MAX_PLAYERS, although I was looking for 'player' to try to find something like that, but I couldn't find anything at all. Idk if I should put redefine in y_commands include... But the redefine was before that include, so I don't get it...
Reply
#8

Quote:
Originally Posted by Lukenzi
Посмотреть сообщение
But the redefine was before that include, so I don't get it...
Try putting it after the include.
Reply
#9

If I put it after that, it won't recognize, it will just be like 500 as now. I think.
Reply
#10

Quote:
Originally Posted by Lukenzi
Посмотреть сообщение
I think.
Well, to know for sure add this and see the result:

pawn Код:
main ()
{
     printf("Max Players: %d", MAX_PLAYERS);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)