MySQL Question.
#2

I dont know how your databse looks but if you delete vehicle set for example accountid to 0 and rest fields in table for id 5
then if a player create new use select id from table where accountid = 0 limit 1
pawn Код:
if(mysql_num_rows() == 0)
{
free result
insert next id so 6
}else{
get field 0
free result
new vehicleid = CreateVehicle(...
VehicleData[vehicleid][sql_id] = id_from_table;
}
Reply


Messages In This Thread
MySQL Question. - by Dokins - 09.12.2013, 23:10
Re: MySQL Question. - by Jefff - 09.12.2013, 23:23
Re: MySQL Question. - by Dokins - 09.12.2013, 23:27
Re: MySQL Question. - by Tayab - 09.12.2013, 23:42
Re: MySQL Question. - by Dokins - 09.12.2013, 23:49
Re: MySQL Question. - by Tayab - 09.12.2013, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)