Vehicle position don't load
#1

Код:
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!
Reply
#2

bump
Reply
#3

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)