Das auto wird Gespawn aber die ini datei wird nicht erstellt!
Würde mich sehr freuen wen eine helfen kann!
dcmd_buycar(playerid,params[]){
new c[20];
new id = strval(strget(params, 0));
if (eingeloggt[playerid]){
new name[MAX_PLAYER_NAME], s[20];
GetPlayerName(playerid,name,sizeof(name));
format(s,sizeof(s),"%s.ini",name);
new job = dini_Int(s, "job");
if(job == 99){
if(PlayerToPoint(3.0,playerid,-1952.7263,305.8152,35.4688)) {
CreateVehicle(id,-1528.3800,161.5145,3.6471,315.6407,-1,-1,-1);
for(new i=0; i<1000; i++){
format(c,sizeof(c),"cars/%d.ini",i);
if(dini_Exists(c)){
dini_IntSet(c,"id",1);
dini_FloatSet(c,"x",-1528.3800);
dini_FloatSet(c,"y",161.5145);
dini_FloatSet(c,"z",3.6471);
dini_FloatSet(c,"angel",315.6407);
dini_IntSet(c,"cid",-1);
dini_IntSet(c,"cid2",-1);
dini_Set(c,"besitzer",name);
return 1;
}}}
else{SendClientMessage(playerid, rot,"Du bist nicht im Autohaus!");}}
else{SendClientMessage(playerid, rot,"Du bist kein Autoverkaufer!");}
return 1;}
return 1;
}