SA-MP Forums Archive
"Unknown Command" when server reaches close to 20 players? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: "Unknown Command" when server reaches close to 20 players? (/showthread.php?tid=67830)



"Unknown Command" when server reaches close to 20 players? - Outbreak - 04.03.2009

I'm having a big problem, the server commands won't work when there is around 20 players, no commands work at all.

When connecting it is supposed to have a welcome message, asking to register or to login...

Normally it works fine, but once it gets close to 20 players, it stops working, the first few players to join, maybe the first 10 players in the server can use all commands, but the rest cant use any commands at all


What could be causing this?

CPU usage is 2- 4%

Dunno what the hell is going on


Re: "Unknown Command" when server reaches close to 20 players? - Burridge - 04.03.2009

wow, i aint herd of that problem before :S

have you got return 1; at the end of ALL your commands?


Re: "Unknown Command" when server reaches close to 20 players? - Nubotron - 04.03.2009

I guess it's just some buffer overflow in your script.


Re: "Unknown Command" when server reaches close to 20 players? - Outbreak - 04.03.2009

yeah, all of them are fine, its only once the server gets to around 20 or more players.. it starts going tits up


EDIT:

Buffer overflow?

Whats this and how could it be fixed?


Re: "Unknown Command" when server reaches close to 20 players? - CracK - 04.03.2009

try
pawn Code:
#pragma dynamic 10000



Re: "Unknown Command" when server reaches close to 20 players? - Outbreak - 04.03.2009

Thanks crackman, but what would that do


Re: "Unknown Command" when server reaches close to 20 players? - Outbreak - 05.03.2009

this problem doesn't seem very common, does anyone know the possible cause, and how it could be fixed?




Re: "Unknown Command" when server reaches close to 20 players? - JaYmE - 05.03.2009

maybe your dedicated server is not use to people, or your bandwidth, its a rare problem so we could not say what causes it ?



Re: "Unknown Command" when server reaches close to 20 players? - hoodline - 05.03.2009

To me its kinda of common problem when scripting because it can be caused by anything

for example

if you type a command like

pawn Code:
/mycmd 1111111111111111
that will some times cause this problem

then when you get a error saying unknown command all your commands stop working
untill you restart the server

so when you type a valid command it wont work


Re: "Unknown Command" when server reaches close to 20 players? - Outbreak - 05.03.2009

that isn't what's happening, normally the player receives a welcome message saying to either login or register.

In not sure exactly how many players must be in for this to happen, but let's say its 20.

So the 21st player and any after will not see the welcome message, and all commands return "Unknown Command" just for that player. This happens to every player who joins after the 20 mark.

If some players leave, and thers is less than 20 players, the ones who couldn't use commands still can't use them, but the ones connecting when there is less than 20 will have no problems.

Could anyone discribe to me why this happens, what kind if things may cause it, and how it could be fixed.

I'm certain this problem is script related.