Callsign from MySQL not attached - 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: Callsign from MySQL not attached (
/showthread.php?tid=628381)
Callsign from MySQL not attached -
xXdaeminoXx - 09.02.2017
Hello guys, i've got a problem with the police callsign, when the car spawns on saved position the callsign isn't attaced on a car, i tried to change the loading type but still nothing, i don't know where is the problem.
in Spawn_Car(carid) is this:
Код:
if (CarData[carid][carCallsign] != 0)
{
CarCallsign[carid] = CreateDynamic3DTextLabel(CarData[carid][carCallsign], COLOR_WHITE, 0.0, 0.0, 0.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(CarCallsign[carid], carid, -0.7, -1.9, -0.3);
}
- no errors or warns, but istn't attached to the vehicle...
Re: Callsign from MySQL not attached -
Misiur - 09.02.2017
How is CarData[carid][carCallsign] defined? Is it a number, or a string/array?
Re: Callsign from MySQL not attached -
xXdaeminoXx - 10.02.2017
It's a text (12 chars max.) - in enum is carCallsign[12 char] - in the table is VARCHAR, but it is not created on a car.
Re: Callsign from MySQL not attached -
xXdaeminoXx - 10.02.2017
Should I use the format(...); or what please ?