23.02.2017, 20:42
need help with if mysql account exist
Help me please
Help me please
select `id` from `accounts` where `name` = 'itachi';
select count(*) from `accounts` where `name` = 'itachi';
new query[64+MAX_PLAYER_NAME]; mysql_format(handle, query, sizeof(query), "INSERT INTO `TEST` (nick, hodnost, LOG) VALUES ('%s', 0, 0)", Meno(playerid)); mysql_query(handle, query); |
new query[64+MAX_PLAYER_NAME]; mysql_format(handle, query, sizeof(query), "UPDATE `ASystem` SET LOG=1 WHERE nick='%s'", Meno(playerid)); mysql_query(handle, query); mysql_format(handle, query, sizeof(query), "SELECT * FROM `TEST` WHERE nick = '%s'", Meno(playerid)); mysql_query(handle, query); |