17.02.2011, 15:46
Hello, I tried almost 100 times with different strings but it never will work I gues.
The VehicleNumber keeps on 0...
I have this:
And yes my database is working
And yes those colums exist
And yes I don't see any mistake in this string...
The VehicleNumber keeps on 0...
I have this:
Код:
public SaveVehicles() { mysql_query("SELECT VehicleNumber FROM vehicles"); mysql_store_result(); new SetNumber[256]; for(new id=0; id<mysql_num_rows(); id++) { format(SetNumber,sizeof(SetNumber),"UPDATE `vehicles` SET VehicleNumber = %d WERE id = %d",vStats[id][VehicleNumber],id); printf("%d",vStats[id][VehicleNumber]); mysql_query(SetNumber); } mysql_free_result(); return 1; } Print: [17:32:03] UPDATE `vehicles` SET VehicleNumber = 975697581 WERE id = 415
And yes those colums exist
And yes I don't see any mistake in this string...