[HELP] Textdraw Problem
#1

Hello,

I just made Textdraws for Character Editor at registering, but i don't know how to make it work.
This is how it looks:

|Please don't steal the idea|

Anyway, im a bit stucked now. Do you see the text that says "Gender:" ? Well, how i can make something like if is player on that textdraw (I mean if that textdraw is selected) player can switch between Male and Female using Left and Right arrows? Can anyone help? How i can check then what did the player selected? Thanks.

PS: What you think about the textdraw? Its not finished anyway.
Reply
#2

Looks pretty cool. As for the rest, I would create one timer that's repeating and use it as sort of a master loop. Then you can create variables to keep up with their status.
Reply
#3

I thought public OnPlayerUpdate(playerid) will do it just fine, but i don't know how.
Reply
#4

Can anyone help me really?
Reply
#5

so basically u want to use the text draw to browse throgh categories ? cant think of ajything but will try something and tell uou
Reply
#6

@spd_sahil
Yes, and thanks. I'd appreciate any help you can give me.
Reply
#7

I updated the textdraw, and tried on my own to make it works, but i failed.
Here's how it looks now:

This is the code i used:
PHP код:
new Text:Textdraw628
PHP код:
    Textdraw628 TextDrawCreate(48.000000141.000000"Nick Name");
    
TextDrawBackgroundColor(Textdraw628255);
    
TextDrawFont(Textdraw6282);
    
TextDrawLetterSize(Textdraw6280.1899990.899999);
    
TextDrawColor(Textdraw628, -1);
    
TextDrawSetOutline(Textdraw6281);
    
TextDrawSetProportional(Textdraw6281); 
And under my stock:
PHP код:
    new newtext[41], name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnameMAX_PLAYER_NAME);
    
format(newtextsizeof(newtext), "%s"name);
    
TextDrawSetString(Textdraw628newtext); 
As you can see the Name: is just blank..

-EDIT- Fixed, i forgot to add TextDrawShowForPlayer under my stock. Anyway, i still dont know how to make the TextDrawSetString work with Left and Right Keys.
Reply
#8

*bump*
Reply
#9

C'mon help me.
Reply
#10

IDK how to make it work but whatever your textdraw is SEXY!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)