SA-MP Forums Archive
[help]Ids from carownership - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help]Ids from carownership (/showthread.php?tid=218979)



[help]Ids from carownership - Dino Bloomer - 31.01.2011

How can i here create that the filterscript loadcars last from gamemode not first...


public LoadCar()
{
new arrCoords[13][64];
new strFromFile2[256];
new File: file = fopen("[FS]CarOwnership.cfg", io_read);
if (file)
{
new idx = 0;
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;
}


what must i change...


Re: [help]Ids from carownership - Steven Paul - 31.01.2011

if you are trying to say that it will not load when Gamemode start. If so then create a command to load it


Re: [help]Ids from carownership - Dino Bloomer - 31.01.2011

no all is loaded i will that the filterscript (carownership) load cars last not first when the gamemode started but how can i make that...up is the code.


Re: [help]Ids from carownership - Dino Bloomer - 01.02.2011

HELP...


Re: [help]Ids from carownership - Steven82 - 01.02.2011

MAYBE WE WOULD HELP IF YOU DIDN'T USE CAPS SAYING HELP


Re: [help]Ids from carownership - Dino Bloomer - 01.02.2011

ok i dont use caps but help me please...