Hallo,wenn ich mein Fraktionautohaus(Selfmade) z.B als FBI-Leader Teste Wird im Ordnerverzeichniss
irgendwie immer das Car 1 überschrieben also das von der 1.txt es wird leider keine neue angelegt...
stock FraktionAutoKaufen(playerid)
{
new pfad[50];
for(new car=1;car<MAX_FRAKCARS;car++)
{
if(PlayerInfo[playerid][pLeader] == 1){format(pfad,50,"/Fraktionautos/SF8/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 2){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 3){format(pfad,50,"/Fraktionautos/LSPD/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 4){format(pfad,50,"/Fraktionautos/Secret-Service/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 5){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 6){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 7){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 8){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 9){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 10){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 11){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 12){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 13){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 14){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 15){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 16){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 17){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(PlayerInfo[playerid][pLeader] == 18){format(pfad,50,"/Fraktionautos/FBI/%d.txt",car); }
if(!fexist(pfad))
{
new vehicle;
new modelid;
vehicle = GetPlayerVehicleID(playerid);
modelid = GetVehicleModel(vehicle);
dini_Create(pfad);
dini_IntSet(pfad,"modelid",modelid);
dini_FloatSet(pfad,"x",2135.2720);
dini_FloatSet(pfad,"y",1446.8075);
dini_FloatSet(pfad,"z",11.9996);
dini_FloatSet(pfad,"rot",0.00);
dini_IntSet(pfad,"farbe1",0);
dini_IntSet(pfad,"farbe2",0);
dini_IntSet(pfad,"respawntime",-1);
return LoadFrakCars(vehicle);
}
}
return 1;
}
//edit Auserdem Werden sie Weiss ich wie oft Createt...