Quote:
Originally Posted by MadeMan
The line looks like this: 0.00|0.00|0.00
So delimiter is '|'
pawn Код:
stock LoadParkingLot() { CheckMySQL();
mysql_query("SELECT * FROM parkinglot"); mysql_store_result();
new field[256]; new carloop; while(mysql_fetch_row_format(field, "|") && carloop < 10) { unformat(field,"p<|>ffffds[24]",ParkingLotInformation[carloop][CarPositionX],ParkingLotInformation[carloop][CarPositionY],ParkingLotInformation[carloop][CarPositionZ],ParkingLotInformation[carloop][CarPositionA],ParkingLotInformation[carloop][CarModelID],ParkingLotInformation[carloop][CarOwner]); if(ParkingLotInformation[carloop][CarModelID] != 0 && ParkingLotInformation[carloop][CarModelID] != -1) { ParkingLotInformation[carloop][VehicleIDD] = CreateVehicle(ParkingLotInformation[carloop][CarModelID], ParkingLotInformation[carloop][CarPositionX],ParkingLotInformation[carloop][CarPositionY],ParkingLotInformation[carloop][CarPositionZ], ParkingLotInformation[carloop][CarPositionA], -1, -1, -1); } } return mysql_free_result(); }
|
No, The delimiter in each row is ','.