SA-MP Forums Archive
Vehicle position don't load - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle position don't load (/showthread.php?tid=317548)



Vehicle position don't load - PASHKEN - 11.02.2012

Код:
function LoadCars()
{
for(new i = 0; i < MAX_CARS; i++)
    {
                if(!fexist(CarPath(i)))
                {
                    SetVehicleNumberPlate(i, "-");
                    SetVehiclePos(i, CarInfo[i][X], CarInfo[i][Y], CarInfo[i][Z]);
				}
                else if(fexist(CarPath(i)))
                {
                        //new playerid;
                        SetVehicleNumberPlate(i, CarInfo[i][Numeriai]);
                        SetVehiclePos(i, CarInfo[i][X], CarInfo[i][Y], CarInfo[i][Z]);
                        SetVehicleToRespawn(i);
                }
	}
return 1;
}
I don't know why its not loading, its save possition, but not load. Help please!


Re: Vehicle position don't load - PASHKEN - 12.02.2012

bump


Re: Vehicle position don't load - iPLEOMAX - 12.02.2012

I don't see "fread" anywhere, you don't even read what's written onto the file..


Re: Vehicle position don't load - PASHKEN - 12.02.2012

Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
I don't see "fread" anywhere, you don't even read what's written onto the file..
i'm using Y_INI