02.12.2012, 10:23
Hello
I have this code:
Now how can i know the same players SQLID row from users table where Name is inputtext. I have also this:
But it don`t works, SQLID is always 0 even if player`s SQLID is really 3 or something.
I have this code:
Код:
static sql1[90]; format(sql1, sizeof(sql1), "SELECT * FROM `users` WHERE `Name` = '%s'", inputtext); mysql_query(sql1); mysql_store_result();
Код:
mysql_fetch_field_row(sql1, "SQLID"); SendFormatMessage(playerid, -1, "His name is: %s | His SQLID is %d", inputtext, strval(sql1));