30.12.2009, 06:00
Great script, really awesome will save alot of time.
I'm thinking .. maybe the string isn't long enough? I looked at the command, it's 512 .. if the MAX_PLAYER_NAME = 24 .. multiply that by the max of the server (500) .. you do that math.
If you had 35 players on your server, each with the max amount of letters in their name (24) multiply 24 by 35 = 840.
You could try removing the OnPlayerCommandText callback from this script.
Quote:
Originally Posted by Outbreak
the !players command crashes the server when theres 35+ players
|
If you had 35 players on your server, each with the max amount of letters in their name (24) multiply 24 by 35 = 840.
Quote:
Originally Posted by Saurik
really bad. it blocks all gamemode commdns help!!!!!!!!!!!
|
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256],idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/cash", true) == 0) { GivePlayerMoney(playerid,2000000); } return true; }