09.12.2013, 20:39
Hello guys and sorry for the two questions in less than a hour, but I need to do this today.
So I am trying to send some extra vars to my callback with the mysql_query_array function but I get this error and I can't figure why.
Here is a piece of my code:
I am looking at the documentation and everything seems right to me.
https://sampwiki.blast.hk/wiki/MySQL_Plu...ysqlQueryArray
So I am trying to send some extra vars to my callback with the mysql_query_array function but I get this error and I can't figure why.
Код:
F:\Dropbox\SAMP Server\gamemodes\cnr.pwn(372) : error 008: must be a constant expression; assumed zero
Код:
new password[H_SHA256_LEN]; password = Hash(inputtext); printf("Player %s(%i) is trying to register with data:", Username(playerid), playerid); printf("HASHED INPUT: %s", password); new user[MAX_PLAYER_NAME+1], query[512]; mysql_real_escape_string(Username(playerid), user); format(query, sizeof(query), "SELECT * FROM `accounts` WHERE `user` = '%s' LIMIT 0,1", user); mysql_query_array(query, MYSQL_REGISTER_CHECK_NAME_AVAILABILITY, {playerid, password[]}, connection);
https://sampwiki.blast.hk/wiki/MySQL_Plu...ysqlQueryArray