10.06.2016, 00:00
Those are errors:
And this is the code:
Is it cuz it cant find column with those conditions
PHP код:
[01:57:42] [Warning] db_query: Query failed: no such column: Ilija_Popivanov
[01:57:42] [Error] db_num_rows(): invalid result handle 0
[01:57:42] [Error] db_free_result(): invalid result handle 0
PHP код:
new vid = ZemiVoziloID(vehicleid)
new string[100]
format(string, sizeof(string), "SELECT * FROM `Klucevi` WHERE `VID` = %d AND `Ime`= %q", vid, ImeNaIgrac(playerid))
new DBResult:rezultat
rezultat = db_query(konekcija, string)
new kk = db_num_rows(rezultat)
db_free_result(rezultat)