Also :
Jetzt hab ich 2 Probleme. Er zeigt mir inner ini Datei die Fahrzeug ID 15 an obwohl es 460 sein müsste:
Veh=15
Xpos=1191.936767
Ypos=-1321.471069
Zpos=13.268428
Das 2. Problem ist, das Auto wird nicht gespawnt:
new vehx;
new vehy;
new vehz;
new veh;
new carsave[256];
new name[MAX_PLAYER_NAME];
format(carsave,sizeof(carsave),"Autos/%s.ini",name);
veh = dini_Int(carsave, "Veh");
vehx = dini_Int(carsave, "Xpos");
vehy = dini_Int(carsave, "Ypos");
vehz = dini_Int(carsave, "Zpos");
CreateVehicle(veh, vehx, vehy, vehz, 320, 0, 1, 60);
if(!strcmp(strget(cmdtext,0),"/parken"))
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
new Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(currentveh, vehx, vehy, vehz);
new name[MAX_PLAYER_NAME];
new carsave[256];
format(carsave,sizeof(carsave),"Autos/%s.ini",name);
new State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid,COLOR_RED,"Du bist nicht der Fahrer!");
return 1;
}
if(!dini_Exists(carsave))
{
dini_Create(carsave);
}
GameTextForPlayer(playerid, "~g~ geparkt", 3000, 4);
dini_IntSet(carsave, "Veh", currentveh);
dini_FloatSet(carsave,"Xpos",vehx);
dini_FloatSet(carsave,"Ypos",vehy);
dini_FloatSet(carsave,"Zpos",vehz);
return 1;
}
Kp wieso -.-