23.06.2014, 00:35
The errors are as follow:
Line 142:
SetUserHashedPassword:
Login Information Enum:
Relevant code:
I goofed something up, I just don't see it. I know its something simple and I will feel like an idiot when someone points it out.
Код:
\System\SQL\sql_user.inc(142) : error 001: expected token: "]", but found "-identifier-" \System\SQL\sql_user.inc(142) : warning 215: expression has no effect \System\SQL\sql_user.inc(142) : error 001: expected token: ";", but found "]" \System\SQL\sql_user.inc(142) : error 029: invalid expression, assumed zero \System\SQL\sql_user.inc(142) : fatal error 107: too many error messages on one line
pawn Код:
SetUserHashedPassword(playerid, tmp);
pawn Код:
#define SetUserHashedPassword(%0,%1) format(user_login_info[%0][user_password], sizeof(user_login_info[%0][user_password]), "%s", %1)
pawn Код:
enum user_login_information
{
user_password[MAX_USER_HASHED_PASSWORD],
user_ip[MAX_PLAYER_IP],
user_secret_key[MAX_USER_SECRET_KEY],
user_sql_id
};
new user_login_info[MAX_PLAYERS][user_login_information];
pawn Код:
new tmp[130];
cache_get_field_content(0, "password", tmp, GetSQLConnection(), MAX_USER_HASHED_PASSWORD);
SetUserHashedPassword(playerid, tmp);