Hallo Leute, ich habe ein kleines "Problem" mit meinem "System", und zwar seh ich keinerlei Fahrzeug Ingame obwohl die Server_log.txt was anderes sagt
Datenbank:
Script:
static loadFrakCars(const frak[]); // dient als alternative für forward
mysql_pquery(dbhandle, "SELECT * FROM `frakCars` WHERE `frakName`='SFPD'", "loadFrakCars", "s", "SFPD"); //Ongamemodeinit (query für laden ausführen)
public loadFrakCars(const frak[]) //Callback fürs auslesen
{
printf("frak: %s", frak);
if(cache_get_row_count(dbhandle) != 0 && !strcmp(frak, "SFPD", true))
{
print("vor schleife");
for(new i;i<cache_get_row_count(dbhandle);i++)
{
print("in schleife");
policeCars[i][c_pos][0] = cache_get_field_content_float(i, "c_x", dbhandle),
policeCars[i][c_pos][1] = cache_get_field_content_float(i, "c_y", dbhandle),
policeCars[i][c_pos][2] = cache_get_field_content_float(i, "c_z", dbhandle),
policeCars[i][c_pos][3] = cache_get_field_content_float(i, "c_r", dbhandle),
policeCars[i][c_id] = CreateVehicle(cache_get_field_content_int(i, "c_model", dbhandle), policeCars[i][c_pos][1], policeCars[i][c_pos][1], policeCars[i][c_pos][2], policeCars[i][c_pos][3], 79, 1, -1, 0),
SetVehicleNumberPlate(policeCars[i][c_id], "SFPD"),
printf("%i,%f,%f,%f,%f,cid:%i,id:%i", cache_get_field_content_int(i, "c_model", dbhandle), policeCars[i][c_pos][0], policeCars[i][c_pos][1], policeCars[i][c_pos][2], policeCars[i][c_pos][3], policeCars[i][c_id], i);
}
print("nach schleife");
}
print("am ende");
return 1;
}
Server.log (Debugging)
ZitatAlles anzeigen[23:47:48] frak: SFPD
[23:47:48] vor schleife
[23:47:48] in schleife
[23:47:48] 597,-1635.050048,650.815002,6.958000,359.169006,cid:1,id:0
[23:47:48] in schleife
[23:47:48] 597,-1628.250000,651.739013,6.958000,0.144999,cid:2,id:1
[23:47:48] in schleife
[23:47:48] 597,-1622.790039,651.568969,6.954999,359.135986,cid:3,id:2
[23:47:48] in schleife
[23:47:48] 597,-1616.459960,652.080993,6.958000,358.226013,cid:4,id:3
[23:47:48] in schleife
[23:47:48] 597,-1611.920043,652.166992,6.960000,359.627990,cid:5,id:4
[23:47:48] in schleife
[23:47:48] 597,-1605.750000,651.903015,6.955999,359.338012,cid:6,id:5
[23:47:48] in schleife
[23:47:48] 597,-1599.709960,651.695983,6.958000,359.825012,cid:7,id:6
[23:47:48] in schleife
[23:47:48] 599,-1573.680053,742.750976,-5.052999,90.029998,cid:8,id:7
[23:47:48] in schleife
[23:47:48] 599,-1573.459960,738.629028,-5.059999,88.511001,cid:9,id:8
[23:47:48] in schleife
[23:47:48] 599,-1573.500000,734.940979,-5.054999,91.046997,cid:10,id:9
[23:47:48] in schleife
[23:47:48] 599,-1573.839965,730.226989,-5.053999,88.580001,cid:11,id:10
[23:47:48] in schleife
[23:47:48] 599,-1574.790039,726.494018,-5.056000,87.775001,cid:12,id:11
[23:47:48] in schleife
[23:47:48] 599,-1574.050048,722.580993,-5.054999,89.525001,cid:13,id:12
[23:47:48] in schleife
[23:47:48] 599,-1574.050048,717.958007,-5.056000,92.010002,cid:14,id:13
[23:47:48] in schleife
[23:47:48] 599,-1573.319946,713.927978,-5.060999,89.472999,cid:15,id:14
[23:47:48] in schleife
[23:47:48] 599,-1573.829956,710.127990,-5.060999,88.727996,cid:16,id:15
[23:47:48] in schleife
[23:47:48] 599,-1572.170043,706.421997,-5.056000,85.075996,cid:17,id:16
[23:47:48] in schleife
[23:47:48] 523,-1596.140014,693.723999,-5.669000,0.871999,cid:18,id:17
[23:47:48] in schleife
[23:47:48] 523,-1600.270019,694.440979,-5.670000,358.052001,cid:19,id:18
[23:47:48] in schleife
[23:47:48] 523,-1604.569946,694.669982,-5.682000,356.346008,cid:20,id:19
[23:47:48] in schleife
[23:47:48] 523,-1608.040039,695.138000,-5.677000,4.875999,cid:21,id:20
[23:47:48] in schleife
[23:47:48] 523,-1612.890014,694.020996,-5.670000,0.991999,cid:22,id:21
[23:47:48] in schleife
[23:47:48] 523,-1616.859985,694.333007,-5.673999,357.122009,cid:23,id:22
[23:47:48] in schleife
[23:47:48] 523,-1620.770019,694.547973,-5.676000,7.538000,cid:24,id:23
[23:47:48] in schleife
[23:47:48] 523,-1624.550048,695.223999,-5.678999,1.179000,cid:25,id:24
[23:47:48] nach schleife
[23:47:48] am ende
mfg