18.02.2017, 18:48
Have you tried other methods? It depends on what mysql version you're using
Try something like this
It's bit more code but I hope it work's. It worked for me
Try something like this
Код:
public OnLoadRepairPickups() { new rows, fields, temp[128], Float:tempfloat; cache_get_data(rows, fields); if(rows) { for(new i; i < rows; i++) { cache_get_row(i, 0, temp); ARepairPickups[i][PickupID]=strval(temp); cache_get_row(i, 1, temp); sscanf(temp, "f", tempfloat); ARepairPickups[i][pux]=tempfloat; cache_get_row(i, 2, temp); sscanf(temp, "f", tempfloat); ARepairPickups[i][puy]=tempfloat; cache_get_row(i, 3, temp); sscanf(temp, "f", tempfloat); ARepairPickups[i][puz]=tempfloat; } } return 1; }