[Pomoc] Sacuvavanje vozila

Započeo Partybreaker, Avgust 03, 2011, 18:10:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: PG,moj edit
Detaljan opis problema: Pa nekad se desi da nestanu vozila,pa ljudi moraju opet da ih kupuju. -.-
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
forward VehicleSave(playerid);
public VehicleSave(playerid)
{

if(IsPlayerConnected(playerid))
{

new dateiname[MAX_PLAYER_NAME+48];
new playername[MAX_PLAYER_NAME];
new var[128];
GetPlayerName(playerid, playername, sizeof(playername));
format(dateiname, sizeof(dateiname), "Vozila/%s.automobil", playername);
new File: CarFile = fopen(dateiname, io_write);
format(var, 256, "AH_Typ=%i\n", Carlist[playerid][Typ]); fwrite(CarFile, var);
format(var, 256, "AH_VModel=%i\n", Carlist[playerid][VehModel]); fwrite(CarFile, var);
format(var, 256, "AH_Vlasnik=%s\n", Carlist[playerid][Vlasnik]); fwrite(CarFile, var);

format(var, 256, "AH_BrojRegistracije=%s\n", Carlist[playerid][BrojRegistracije]); fwrite(CarFile, var);
format(var, 256, "AH_Cijena=%i\n", Carlist[playerid][Cijena]); fwrite(CarFile, var);
format(var, 256, "AH_Matsi=%i\n", Carlist[playerid][CarMats]); fwrite(CarFile, var);
format(var, 256, "AH_Droga=%i\n", Carlist[playerid][CarDroga]); fwrite(CarFile, var);
format(var, 256, "AH_X=%f\n", Carlist[playerid][X]); fwrite(CarFile, var);
format(var, 256, "AH_Y=%f\n", Carlist[playerid][Y]); fwrite(CarFile, var);
format(var, 256, "AH_Z=%f\n", Carlist[playerid][Z]); fwrite(CarFile, var);
format(var, 256, "AH_Rot=%f\n", Carlist[playerid][Rotation]); fwrite(CarFile, var);
format(var, 256, "AH_Status=%i\n", Carlist[playerid][Status]); fwrite(CarFile, var);
format(var, 256, "AH_Lock=%i\n", Carlist[playerid][Lock]); fwrite(CarFile, var);
format(var, 256, "AH_Paintjob=%i\n", Carlist[playerid][Paintjob]); fwrite(CarFile, var);
format(var, 256, "AH_Color1=%i\n", Carlist[playerid][Color1]); fwrite(CarFile, var);
format(var, 256, "AH_Color2=%i\n", Carlist[playerid][Color2]); fwrite(CarFile, var);
format(var, 256, "AH_mod1=%i\n", Carlist[playerid][mod1]); fwrite(CarFile, var);
format(var, 256, "AH_mod2=%i\n", Carlist[playerid][mod2]); fwrite(CarFile, var);
format(var, 256, "AH_mod3=%i\n", Carlist[playerid][mod3]); fwrite(CarFile, var);
format(var, 256, "AH_mod4=%i\n", Carlist[playerid][mod4]); fwrite(CarFile, var);
format(var, 256, "AH_mod5=%i\n", Carlist[playerid][mod5]); fwrite(CarFile, var);
format(var, 256, "AH_mod6=%i\n", Carlist[playerid][mod6]); fwrite(CarFile, var);
format(var, 256, "AH_mod7=%i\n", Carlist[playerid][mod7]); fwrite(CarFile, var);
format(var, 256, "AH_mod8=%i\n", Carlist[playerid][mod8]); fwrite(CarFile, var);
format(var, 256, "AH_mod9=%i\n", Carlist[playerid][mod9]); fwrite(CarFile, var);
format(var, 256, "AH_mod10=%i\n", Carlist[playerid][mod10]); fwrite(CarFile, var);
format(var, 256, "AH_mod11=%i\n", Carlist[playerid][mod11]); fwrite(CarFile, var);
format(var, 256, "AH_mod12=%i\n", Carlist[playerid][mod12]); fwrite(CarFile, var);
format(var, 256, "AH_mod13=%i\n", Carlist[playerid][mod13]); fwrite(CarFile, var);
format(var, 256, "AH_mod14=%i\n", Carlist[playerid][mod14]); fwrite(CarFile, var);
format(var, 256, "AH_mod15=%i\n", Carlist[playerid][mod15]); fwrite(CarFile, var);
format(var, 256, "AH_mod16=%i\n", Carlist[playerid][mod16]); fwrite(CarFile, var);
format(var, 256, "AH_mod17=%i\n", Carlist[playerid][mod17]); fwrite(CarFile, var);
fclose(CarFile);

}
return 1;
}


Mislim da je to ovaj kod,ako neko zna,stvarno bi mi pomogao,ovo me muci. :S


Server IP: 193.192.58.82:7782
Forum: www.balkan-underline.info