Big string bug? Error: Unknown Command -
godknightx - 30.11.2009
Hy
I'm use an (very) edited Godfather Mode (by me), with use MySQL.
I use bigger strings, for example for Dialog (item list...) - Size is 1024
But now i recently give "Unknown Command" errors on 1-1 (new) commands, but its perfect... (No errors, warning...)
And its a SAMP 0.3 bug? Or its a memory limit problem? (If yes, can i increase this limit?)
Thanx
Re: Big string bug? Error: Unknown Command -
Joe Staff - 30.11.2009
Well it is probably just your code. Are you certain you've narrowed it down to just strings?
If you're using an array for players and you exceed that limit with something like 'INVALID_PLAYER_ID' then that would cause a script hault and for the command to return 'unknown command'
Re: Big string bug? Error: Unknown Command -
godknightx - 30.11.2009
No.
For example i writed a /convert command for convert house files to mysql with a 1024 sized string.
But if i reduced this to 512 its work perfect... So i dont know what is the bug...
Re: Big string bug? Error: Unknown Command -
Marcel - 30.11.2009
You could show us some code.
Re: Big string bug? Error: Unknown Command -
Balon - 30.11.2009
If it is memory limit issue so you can increase stack of memory using
And if I remember right so 16K is default stack size:
Re: Big string bug? Error: Unknown Command -
Joe Staff - 30.11.2009
Have you increased the MySQL columns buffer size to accomodate the string size? I rarely run into this type of situation so I'm not entirely sure how to prognose it.
Re: Big string bug? Error: Unknown Command -
Balon - 30.11.2009
@up: read what he wrote:
Quote:
For example i writed a /convert command for convert house files to mysql with a 1024 sized string.
But if i reduced this to 512 its work perfect...
|
It has to be a problem with memory limit.
Re: Big string bug? Error: Unknown Command -
godknightx - 30.11.2009
Quote:
Originally Posted by Balon
If it is memory limit issue so you can increase stack of memory using
And if I remember right so 16K is default stack size:
|
Thanx.
The 4096 is KB, or MB ?
And can you send mi a link for the #pragma commands ?
Re: Big string bug? Error: Unknown Command -
Marcel - 30.11.2009
KB,
https://sampwiki.blast.hk/wiki/Keywordsirectives#.23pragma
Re: Big string bug? Error: Unknown Command -
Rac3r - 30.11.2009
Hmmm, isn't it if get a strval and it contains too many characters, it crashes the runtime on the server.
Then you'll recieve the SERVER: Unknown Command message.