03.07.2011, 14:25
I have this code.
Now, this code will print my name as Test_User, but I want that it types Test User, without _
Please help!
Код:
GetNameFromSql(accId) { new query[STR_MAX], strid[32] ; format(query, sizeof(query), "SELECT Name FROM players WHERE accid = '%d' LIMIT 1", accId); mysql_query(query); mysql_store_result(); if(mysql_num_rows()==0) { format(strid, sizeof(strid), "None"); return strid; } else { mysql_fetch_row(strid); new intid[32]; strmid(intid, strid, 0, strlen(strid), 255); mysql_free_result(); return intid; } }
Please help!