22.12.2012, 09:18
CallLocalFunction crashes if passing an empty string, which is what it's trying to do on line 87.
Additionally, line 92 will be trying to check "cmdtext[pos]" where pos = 1, an invalid index of the array since it's an empty string.
I suppose zcmd doesn't handle empty strings in OnPlayerCommandText because it should never receive one - it is indeed a bug in the server. To protect against this you could use something like "if(isnull(cmdtext)) return 0;" at the top of OnPlayerCommandText... and ideally ban anyone who's trying to break your server!
Additionally, line 92 will be trying to check "cmdtext[pos]" where pos = 1, an invalid index of the array since it's an empty string.
I suppose zcmd doesn't handle empty strings in OnPlayerCommandText because it should never receive one - it is indeed a bug in the server. To protect against this you could use something like "if(isnull(cmdtext)) return 0;" at the top of OnPlayerCommandText... and ideally ban anyone who's trying to break your server!