Callsign from MySQL not attached
#1

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...
Reply
#2

How is CarData[carid][carCallsign] defined? Is it a number, or a string/array?
Reply
#3

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.
Reply
#4

Should I use the format(...); or what please ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)