05.08.2010, 20:47
Quote:
I guess keep it that way?
pinfo[playerid][name] is already a string |
Код:
new variable[128]; new query[128]; new pnombre[MAX_PLAYER_NAME]; GetPlayerName(playerid, pnombre, sizeof(pnombre)); format(query, sizeof(query), "SELECT %s FROM `jugadores` WHERE nombre='%s'", var, pnombre); mysql_query(query); mysql_store_result(); mysql_fetch_row(variable); mysql_free_result(); if(strcmp(var, "id", true) == 0) { pinfo[playerid][id] = strval(variable); }