16.02.2012, 03:54
I have this code:
Which displays this in the server console:
And in debug file:
How can I make it display the correct information?
pawn Код:
sscanf(Query, "p<|>is[30]dd", FactionInfo[id][ID],FactionInfo[id][Name], FactionInfo[id][Type], FactionInfo[id][FBank]);
printf(" Faction : %s Faction Type : %d Faction Bank : %d", FactionInfo[id][Name],FactionInfo[id][Type],FactionInfo[id][FBank]);
pawn Код:
[08:03:24] Faction : L Angeles Police Faction Type : 1 Faction Bank : 500000
[08:03:24] Faction : Fe Department Faction Type : 3 Faction Bank :
pawn Код:
08:03:24] CMySQLHandler::NumRows() - Returned 1 row(s)
[08:03:24] >> mysql_fetch_row_format( Connection handle: 1 )
[08:03:24] CMySQLHandler::FetchRow() - Return: 1|Los Angeles Police|1|500000
[08:03:24] >> mysql_query( Connection handle: 1 )
[08:03:24] CMySQLHandler::Query(SELECT ID,Name,Type,FBank FROM Factions WHERE ID= 2) - Successfully executed.
[08:03:24] >> mysql_store_result( Connection handle: 1 )
[08:03:24] CMySQLHandler::StoreResult() - Result was stored.
[08:03:24] >> mysql_num_rows( Connection handle: 1 )
[08:03:24] CMySQLHandler::NumRows() - Returned 1 row(s)
[08:03:24] >> mysql_fetch_row_format( Connection handle: 1 )
[08:03:24] CMySQLHandler::FetchRow() - Return: 2|Fire Department|3|5
[08:03:24] >> mysql_query( Connection handle: 1 )