Quote:
Originally Posted by GaB1TzZzu
pawn Код:
if(strcmp(cmd, "/search", true) == 0) { if(IsPlayerConnected(playerid)) { new query[120]; new Number; tmp = strtok(cmdtext, idx); Number= strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /search [number]"); return 1; } format(query, sizeof(query)," SELECT * FROM players WHERE Number=%d",Number); samp_mysql_query(query); } return 1; }
After.. ?
|
You sent the query, store the result, check if there are rows matching your query using mysql_num_rows and fetch the result with mysql_fetch_row_format.