22.08.2014, 10:39
Im using TextDraw for my login system, but i can't select them.
There is my textdraw on gamemodeint
And there is funtion selection
When Moving Mouse on the textdraw they did'nt change color anyone can help me pls. +rep thanks you
There is my textdraw on gamemodeint
Quote:
Textdraw13 = TextDrawCreate(532.399597, 143.857711, "Information"); TextDrawLetterSize(Textdraw13, 0.235999, 1.450666); TextDrawTextSize(Textdraw13, 598.399780, -63.217769); TextDrawAlignment(Textdraw13, 1); TextDrawColor(Textdraw13, -1); TextDrawUseBox(Textdraw13, true); TextDrawBoxColor(Textdraw13, 255); TextDrawSetShadow(Textdraw13, 0); TextDrawSetOutline(Textdraw13, 1); TextDrawBackgroundColor(Textdraw13, 51); TextDrawFont(Textdraw13, 2); TextDrawSetProportional(Textdraw13, 1); TextDrawSetSelectable(Textdraw13, true); Textdraw14 = TextDrawCreate(503.199798, 104.533378, "Login"); TextDrawLetterSize(Textdraw14, 0.257200, 2.22719; TextDrawTextSize(Textdraw14, 627.999877, -74.168869); TextDrawAlignment(Textdraw14, 1); TextDrawColor(Textdraw14, -1); TextDrawUseBox(Textdraw14, true); TextDrawBoxColor(Textdraw14, 255); TextDrawSetShadow(Textdraw14, 0); TextDrawSetOutline(Textdraw14, 1); TextDrawBackgroundColor(Textdraw14, 255); TextDrawFont(Textdraw14, 2); TextDrawSetProportional(Textdraw14, 1); TextDrawSetSelectable(Textdraw14, true); |
Quote:
public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(clickedid == Textdraw14) { SendClientMessage(playerid, 0xFFFFFFAA, "Test Login SYstem."); CancelSelectTextDraw(playerid); } if(clickedid == TextDraw13) { SendClientMessage(playerid, 0xFFFFFFAA, "Test Login SYstem."); CancelSelectTextDraw(playerid); } return 1; } |