Server Crash (MySQL R40)
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
You need to provide a length for it because sizeof doesn't work with enum-arrays.
Код:
cache_get_value(rowid, "field_name", enum_array, size);
EDIT: The function should return 0 for failure instead of crashing, this needs to be fixed because many people tend to forget the size.
You my friend are a saviour, I totally forgot about the Size.. Granted I haven't used MySQL or written anything in PAWN (specifically for samp) in about a year.


Edit: Even with that change its still crashing.. Just for note the salt is '9Vu!W{JS'SLN', I'm actually starting to wonder if its one of the characters.
Reply


Messages In This Thread
Server Crash (MySQL R40) - by zT KiNgKoNg - 09.09.2016, 10:14
Re: Server Crash (MySQL R40) - by Konstantinos - 09.09.2016, 10:19
Re: Server Crash (MySQL R40) - by zT KiNgKoNg - 09.09.2016, 10:26
Re: Server Crash (MySQL R40) - by Konstantinos - 09.09.2016, 10:31
Re: Server Crash (MySQL R40) - by justjamie - 09.09.2016, 10:33
Re: Server Crash (MySQL R40) - by zT KiNgKoNg - 09.09.2016, 10:37
Re: Server Crash (MySQL R40) - by Konstantinos - 09.09.2016, 11:29
Re: Server Crash (MySQL R40) - by zT KiNgKoNg - 09.09.2016, 12:28
Re: Server Crash (MySQL R40) - by Konstantinos - 09.09.2016, 13:34

Forum Jump:


Users browsing this thread: 2 Guest(s)