public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
if(dialogid == AutoDialog) {
new Float:x, Float:y,Float:z,Float: angle;
GetPlayerFacingAngle(playerid,angle);
GetPlayerPos(playerid, x,y,z);
new ID = strval(inputtext[3]);
if (ID>=400 && ID<=611) return SendClientMessage(playerid,0x33AA33AA ,"Diese ID gibt es nicht.");
new file[256];
for(new count;count<MAX_VEHICLES;count++){
format(file, sizeof(file),"Fahrzeug_%d.prtfile",count);
dini_Create(file);
dini_IntSet(file,"%d",AutoDatei[playerid][id]);
dini_FloatSet(file,"%d",AutoDatei[playerid][xx]);
dini_FloatSet(file,"%d",AutoDatei[playerid][yy]);
dini_FloatSet(file,"%d",AutoDatei[playerid][zz]);
dini_FloatSet(file,"%d",AutoDatei[playerid][anglee]);
CreateVehicle(ID, x, y, z, angle,-1,-1,-1);
}}
return 0; }
Was ist falsch?