17.02.2013, 01:30
Hola a todos, tengo este cуdigo pero no entiendo porque no funciona:
No me funciona, que estoy haciendo mal?
Код:
//Arriba de todo new Text:Textdraw0; new Text:Textdraw1; //OnGameModeInit Textdraw0 = TextDrawCreate(525.000000, 191.000000, "abrir"); TextDrawAlignment(Textdraw0, 2); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 2); TextDrawLetterSize(Textdraw0, 0.230000, 1.600000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 1); TextDrawSetProportional(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 255); TextDrawTextSize(Textdraw0, 0.000000, 26.000000); Textdraw1 = TextDrawCreate(577.000000, 191.000000, "cerrar"); TextDrawAlignment(Textdraw1, 2); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 2); TextDrawLetterSize(Textdraw1, 0.230000, 1.600000); TextDrawColor(Textdraw1, -1); TextDrawSetOutline(Textdraw1, 1); TextDrawSetProportional(Textdraw1, 1); TextDrawUseBox(Textdraw1, 1); TextDrawBoxColor(Textdraw1, 255); TextDrawTextSize(Textdraw1, 0.000000, 36.000000); TextDrawSetSelectable(Textdraw0, true); TextDrawSetSelectable(Textdraw1, true); //En OnPlayerConnect SelectTextDraw(playerid, 0x9E0100FF); //En OnPlayerSpawn CancelSelectTextDraw(playerid); //En OnPlayerClickTextDraw if(clickedid == Textdraw0) { SendClientMessage(playerid, 0xFFFFFFAA, "abrir"); } else if(clickedid == Textdraw0) { SendClientMessage(playerid, 0xFFFFFFAA, "cerrar"); }