Error:
Quote:
warning 217: loose indentation
warning 217: loose indentation
warning 217: loose indentation
warning 217: loose indentation
error 035: argument type mismatch (argument 3)
warning 204: symbol is assigned a value that is never used: "iResult"
|
Code:
public saymoney(id)
{
new szAuthid[32], szName[32];
new iResult;
get_user_authid( id, szAuthid, 31 );
get_user_name( id, szName, 31 );
res = dbi_query(dbc, "SELECT `money` FROM table where name='%s' ", szName);
while (dbi_nextrow(res) > 0)
{
iResult = dbi_result(res, "money");
}
client_print(0,print_chat, iResult);
}