24.12.2010, 12:36
So if i use Update3DTextLabelText(blabla) and the 3dtext haven't been made yet , does the code automaticly create it ?
For example , i got this :
It will make the same thing as ?
For example , i got this :
pawn Код:
format(value, sizeof(value), "Owner : %s", CarInfo[sqlid][Owner]);
CarInfo[sqlid][vehicle3Dtext] = Create3DTextLabel( value, 0xFFFF00AA, 0.0, 0.0, 0.0, 10.0, 0, 1 );
Attach3DTextLabelToVehicle( CarInfo[sqlid][vehicle3Dtext], sqlid, 0.0, 0.0, 0.0);
format(value, sizeof(value), "%s", CarInfo[sqlid][Owner]);
SetVehicleNumberPlate(sqlid,value);
Update3DTextLabelText(CarInfo[sqlid][vehicle3Dtext], 0xFFFF00AA, value);
return 1;
pawn Код:
format(value, sizeof(value), "Owner : %s", CarInfo[sqlid][Owner]);
//CarInfo[sqlid][vehicle3Dtext] = Create3DTextLabel( value, 0xFFFF00AA, 0.0, 0.0, 0.0, 10.0, 0, 1 );
Attach3DTextLabelToVehicle( CarInfo[sqlid][vehicle3Dtext], sqlid, 0.0, 0.0, 0.0);
format(value, sizeof(value), "%s", CarInfo[sqlid][Owner]);
SetVehicleNumberPlate(sqlid,value);
Update3DTextLabelText(CarInfo[sqlid][vehicle3Dtext], 0xFFFF00AA, value);
return 1;