20.04.2012, 13:52
Hello
I have a problem with the textdraw.
If I'm in car, then the textdraw: "Fuel" not showing up.
There's the code. Made printf too, if I sit in car, the printf works.
TextDraw[9] :
I have a problem with the textdraw.
If I'm in car, then the textdraw: "Fuel" not showing up.
There's the code. Made printf too, if I sit in car, the printf works.
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) { TextDrawShowForPlayer(playerid, textdrawVariables[9]);// printf("showing textdraw"); } }
Код:
textdrawVariables[9] = TextDrawCreate(123.0, 123.0, "Fuel: "); TextDrawBackgroundColor(textdrawVariables[9], 255); TextDrawFont(textdrawVariables[9], 2); TextDrawLetterSize(textdrawVariables[9], 0.500000, 1.300000); TextDrawColor(textdrawVariables[9], -1362045441); TextDrawSetOutline(textdrawVariables[9], 0); TextDrawSetProportional(textdrawVariables[9], 1); TextDrawSetShadow(textdrawVariables[9], 1);