Jump to content
  • 0

ajutor mica problema


Question

Posted

mi-am, pus masini personale din gm........si cand deschid serveru intru dar eu am pus masinile sa fie la banca...si nu sunt acolo ...nu sunt deloc pe server si problema cred ca e de aici [pawn]public LoadCar()

{

new arrCoords[13][64];

new strFromFile2[256];

new File: file = fopen("cars.cfg", io_read);

if (file)

{

new idx = 268;

while (idx < sizeof(CarInfo))

{

fread(file, strFromFile2);

split(strFromFile2, arrCoords, ',');

CarInfo[idx][cModel] = strval(arrCoords[0]);

CarInfo[idx][cLocationx] = floatstr(arrCoords[1]);

CarInfo[idx][cLocationy] = floatstr(arrCoords[2]);

CarInfo[idx][cLocationz] = floatstr(arrCoords[3]);

CarInfo[idx][cAngle] = floatstr(arrCoords[4]);

CarInfo[idx][cColorOne] = strval(arrCoords[5]);

CarInfo[idx][cColorTwo] = strval(arrCoords[6]);

strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);

strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255);

CarInfo[idx][cValue] = strval(arrCoords[9]);

CarInfo[idx][cLicense] = strval(arrCoords[10]);

CarInfo[idx][cOwned] = strval(arrCoords[11]);

CarInfo[idx][cLock] = strval(arrCoords[12]);

printf("CarInfo: %d Owner:%s LicensePlate %s",idx,CarInfo[idx][cOwner],CarInfo[idx][cLicense]);

idx++;

}

}

return 1;

}

[/pawn]  iar in scriptfiles am cars.cfg

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.