what i put

Started by Cool, Oct 23, 2015, 06:39 PM

Previous topic - Next topic

Cool

what i put to its write 1 to 201 ids numbers automatic i try numbers but not works
QuerySQL( db, "INSERT INTO cars ( ID, Cost, Owner, Shared) VALUES ( '1', '600000', 'Vice-City', 'None')" );

MacTavish

#1
Try Edited
else if(cmd =="insert")
{
local Max_Veh = GetVehicleCount()+1;
for(local i=1; i < Max_Veh; ++i)
{
QuerySQL( db, "INSERT INTO cars ( ID, Cost, Owner, Shared) VALUES ( '"+i.tointeger()+"', '600000', 'Vice-City', 'None')" );
print("Done ID: "+i.tointeger());
}
}

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Cool

Thanx Works Perfect As usual your everything works perfect