Plate problem - 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: Plate problem (
/showthread.php?tid=411879)
Plate problem -
crouch010 - 30.01.2013
Hy everyone,i have a problem with my sistem,/v plate its with 3dtext,its okay when i have just 10-12 personal cars on server,the 3dtext load ,save and change(/v plate) like a charm,but when i have like 100+ personal cars ,some of 3dtext did not load,and other few ,like 2-3 personal cars 3dtext just dissapear,randomly.
Code from LoadCar,just under OnGmeModeinit,i putted it:
Код:
for(new h = carsonserver; h < sizeof(CarInfo); h++)
{
AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
format(TextCar, sizeof(TextCar), "%s-%s-%s", CarInfo[h][cLicense], CarInfo[h][cLicense2], CarInfo[h][cLicense3]);
TextUpCar[h] = Create3DTextLabel(TextCar, 0x33AAFFFF, 0.0, 0.0, 0.0, 25, 0, 1);
Attach3DTextLabelToVehicle(TextUpCar[h], h, 0.0, 0.0, 0.1);
LoadComponents(h);
}
Pictures:
http://imageshack.us/g/194/samp150wb.png/