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

It will be the same thing if u uncomment the same line??

Anyways shouldnt [code]= Create3DTextLabel[code] answer ur question?
Reply
#3

Didn't really undestand what you wanted to say , but i solved the problem . thanx for your answer .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)