Hallo, ich habe 4 mal Tag Mismatch in dieser Zeile
createFrakCar(playerid,mID,fInfo[playerid][f_x],fInfo[playerid][f_y],fInfo[playerid][f_z],fInfo[playerid][f_r]);
Hallo, ich habe 4 mal Tag Mismatch in dieser Zeile
createFrakCar(playerid,mID,fInfo[playerid][f_x],fInfo[playerid][f_y],fInfo[playerid][f_z],fInfo[playerid][f_r]);
Zeig mal den Stock oder die Public.
okay mom
mein enum was ihr braucht
enum frakenum{
f_name[256],
Float:f_x,
Float:f_y,
Float:f_z,
Float:f_r,
f_inter,
f_world,
f_color,
equip_cost,
f_c1,
f_c2,
fvID[500],
}
ocmd:createfcar(playerid,params[])
{
if(!isAdmin(playerid,1)) return print("createfcar ADMIN FAILED");// ADuty[playerid] == 1) return SendClientMessage(playerid,-1,"Nicht Duty oder Admin");
{
//new query[128];
new mID,pID,frakt[128];
print("Car fehlgeschlagen 2");
if(sscanf(params,"iiiu",mID,fInfo[playerid][f_c1],fInfo[playerid][f_c2],fInfo[playerid][f_name])) return SendClientMessage(playerid,-1,"INFO: /createfcar [VehicleID] [Color1] [Color2] [Fraktionsname]");
if(mID <400 mID > 611) return SendClientMessage(playerid,RED,"Ungültige ID!");
{
GetPlayerPos(pID,fInfo[playerid][f_x],fInfo[pID][f_y],fInfo[pID][f_z]);
SetPVarString(pID,"Frakt",frakt);
GetPlayerFacingAngle(playerid,fInfo[pID][f_r]);
createFrakCar(playerid,mID,fInfo[playerid][f_x],fInfo[playerid][f_y],fInfo[playerid][f_z],fInfo[playerid][f_r]);
//PutPlayerInVehicle(playerid,mID,1);
print("Car erfolgreich");
}
print("Car fehlgeschlagen");
}
return 1;
}
forward frakcarSavedToDB(carid);
new sitze[19999];
createFrakCar(playerid,modelid,x,y,z,r){
print("Createfcar vor schleife");
//
for(new i=0; i<sizeof(sitze); i++){
new frak[128];
print("Create fcar in schleif");
if(cInfo[i][id_x]!=0)continue;
//cInfo[i][besitzer]=fInfo[playerid][f_name];
//GetPlayerName(playerid,cInfo[i][besitzer],MAX_PLAYER_NAME);
CreateVehicle(modelid,x,y,z,r,fInfo[playerid][f_c1],fInfo[playerid][f_c2],-1);
new string[144],pIDname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pIDname,sizeof(pIDname));
GetPVarString(playerid,"Frakt",frak,sizeof(frak));
format(string,sizeof(string),"Das Auto NR[%i] wurde für %s erstellt",i,fInfo[playerid][f_name]);
SendClientMessageToAll(RED,string);
saveFrakCarToDB(fInfo[i][f_name]);
print("Createfcar in schleife ende");
return 1;
}
return 1;
}
saveFrakCarToDB(carid)
{
new query[512];
// format(query,sizeof(query),"INSERT INTO Frakcars (Fraktion,ModelID,Farbe1,Farbe2,) VALUES ('%s','%i','%i','%i',)",fInfo[playerid][f_name]fInfo[playerid][fvID],fInfo[playerid][f_c1],fInfo[playerid][f_c2]);
print(query); // <--- diese Zeile
mysql_function_query(dbhandle,query,true,"carSavedToDB","i",carid);
return 1;
}
createFrakCar(playerid,modelid,x,y,z,r){
Hey, ich brauche den Stock von createFrakCar