[HELP] MySQL Car System
#4

There is GetFreeID
Quote:

stock GetFreedID()
{
for(new i=1; i<MAX_CARS; i++)
{
format(cquery,sizeof(cquery),"SELECT * FROM cars WHERE `cID` = %d LIMIT 1",i);
mysql_function_query(dbHandle, cquery, false, "","");
mysql_store_result();
if(mysql_num_rows() == 0)
{
mysql_free_result();
return i;
}
mysql_free_result();
}
return 0;
}

Reply


Messages In This Thread
[HELP] MySQL Car System - by shulk - 08.09.2013, 13:57
Re: [HELP] MySQL Car System - by shulk - 08.09.2013, 18:05
Re: [HELP] MySQL Car System - by dusk - 08.09.2013, 18:10
Re: [HELP] MySQL Car System - by shulk - 08.09.2013, 20:55
Re: [HELP] MySQL Car System - by shulk - 09.09.2013, 10:22
Re: [HELP] MySQL Car System - by viveka27 - 11.09.2013, 07:20
Re: [HELP] MySQL Car System - by Eyce - 11.09.2013, 08:04

Forum Jump:


Users browsing this thread: 3 Guest(s)