Small 3dtext question
#1

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 :
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;
It will make the same thing as ?
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;
Reply


Messages In This Thread
Small 3dtext question - by Dj_maryo1993 - 24.12.2010, 12:36
Re: Small 3dtext question - by <Weponz> - 24.12.2010, 12:42
Re: Small 3dtext question - by Dj_maryo1993 - 24.12.2010, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)