12.04.2017, 22:00
Hello,
I'm making a MyBB forum integeration for my gameserver so when people register on it the same thing will apply to forums ( so they will have access to forum too, automatically )
well i disabled registration and i made some edits to my code and i got errors on this:
I'm using it to add +1 in UID ( user id ) for each registration...
errors are :
in the check_num_rows line. can you help me with an alternative thing? or just by fixing errors on that?
P.s.: i tried cache_get_row_count() and got same error.
I'm making a MyBB forum integeration for my gameserver so when people register on it the same thing will apply to forums ( so they will have access to forum too, automatically )
well i disabled registration and i made some edits to my code and i got errors on this:
PHP код:
stock CheckMybbUsers()
{
new query[1000];
format(query, sizeof(query), "SELECT * FROM `mybb_users`");
new Cache: stringresult = mysql_query(SQL, query);
cache_num_rows() = mybb_users;
cache_delete(stringresult);
return 1;
}
errors are :
Код:
error 022: must be lvalue (non-constant) warning 215: expression has no effect
P.s.: i tried cache_get_row_count() and got same error.