stock IsValidAccount(name[]){mysql_format(mysql,query,sizeof(query),\"SELECT * FROM Users WHERE Name=\'%e\'\",name);inline User_CheckValid(){if(cache_num_rows()) return 1;else return 0;}mysql_tquery_inline(mysql,query,using inline User_CheckValid,\"\");return 0;}
stock IsValidAccount(name[]) {new qry[64], rst, Cache:cch;mysql_format(mysql, qry, sizeof(qry), \"SELECT * FROM Users WHERE Name=\'%e\'\", name);cch = mysql_query(mysql, qry);rst = cache_num_rows();cache_delete(cch);return (rst) ? (1) : (0);}
akkor nem lehet tquery-vel? :question: :confused:
mysql_format( dbHandle, query, sizeof( query ), \"SELECT * FROM `accounts` WHERE `username` = \'%s\'\", name );mysql_query( dbHandle, query );cache_get_data( rows, fields );if( rows ) { SendClientMessage( playerid, -1, \"{FF0000}Rendszer: {FFFFFF}Ez a felhasználónév már létezik az adatbázisunkban!\" ); }else if( !rows ) { SendClientMessage( playerid, -1, \"{FF0000}Rendszer: {FFFFFF}Ez a felhasználónév még nem létezik az adatbázisunban!\" ); }