Guten Tag,
ich habe ein Problem.
Hier mein OnPlayerCarsLoad Stock:
stock OnPlayerCarsLoad(playerid)
{
new num_fields,num_rows;
cache_get_data(num_rows,num_fields,DB);
if(!num_rows)return 1;
for(new i=0; i<num_rows; i++)
{
new id=getFreeCarID();
cInfo[id][model]=cache_get_field_content_int(i,"model",DB);
cInfo[id][besitzer]=cache_get_field_content_int(i,"Besitzer",DB);
cInfo[id][c_x]=cache_get_field_content_float(i,"x",DB);
cInfo[id][c_y]=cache_get_field_content_float(i,"y",DB);
cInfo[id][c_z]=cache_get_field_content_float(i,"z",DB);
cInfo[id][c_r]=cache_get_field_content_float(i,"r",DB);
cInfo[id][db_id]=cache_get_field_content_int(i,"id",DB);
cInfo[id][id_x]=CreateVehicle(cInfo[id][model],cInfo[id][c_x],cInfo[id][c_y],cInfo[id][c_z],cInfo[id][c_r],-1,-1,-1);
}
return 1;
}
Dann bekomme ich folgende Errors:
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14370) : error 017: undefined symbol "cache_get_data"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14374) : error 017: undefined symbol "getFreeCarID"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14375) : error 017: undefined symbol "cache_get_field_content_int"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14376) : error 017: undefined symbol "cache_get_field_content_int"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14377) : error 017: undefined symbol "cache_get_field_content_float"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14378) : error 017: undefined symbol "cache_get_field_content_float"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14379) : error 017: undefined symbol "cache_get_field_content_float"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14380) : error 017: undefined symbol "cache_get_field_content_float"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14381) : error 017: undefined symbol "cache_get_field_content_int"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14369) : warning 203: symbol is never used: "num_fields"
C:\Users\Frank\Desktop\GTA Sunshine Reallife\gamemodes\Sicher.pwn(14367) : warning 203: symbol is never used: "playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Liegt wahrscheinlich daran, dass ich die MySQL Version R5 nutze.
Könnt ihr mir mal helfen, wie ich das denn dann umschreibe?
Mit freundlichen Grüßen,
Scripter4.0