15.02.2015, 17:33
Good after noon, I have a little question concerning the Dialogs and mySQL queries.
I want to display last 5-6 911 calls in one dialog, but I don't understand how to do it.
That's the code when the 911 call is inserted into database:
I want to display last 5-6 911 calls in one dialog, but I don't understand how to do it.
That's the code when the 911 call is inserted into database:
pawn Код:
new query[1024];
format(query, sizeof(query), "INSERT INTO `911Calls` (`Caller`, `Number`, `Location`, `Situation`, `Taken`) VALUES ('%s', '%d', '%s', '%s', '0');",turner, PlayerInfo[playerid][pPhoneNumber], PlayerCrimeLocation[playerid], PlayerCrimeReport[playerid]);
mysql_query(query);