21.08.2015, 21:55
buentas tardes tengo un bug medio raro al registrarte te sale un menu textdraw para ponerte hombre mujer edad y demas eso no me anda pero el textdraw comenzar funciona bien osea tengo todo lo mismo
los textdraws
si me ayudan los agradesco
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(GetPVarInt(playerid, "newuser") == 1) { if(clickedid == Text:INVALID_TEXT_DRAW) SelectTextDraw(playerid, 0x33AA33AA); //ESC if(clickedid == MenuRegistro[5]) { if(PlayerInfo[playerid][sexo] == 0) { PlayerInfo[playerid][sexo] = 1; SetPlayerSkin(playerid, 192); PlayerTextDrawSetString(playerid, DatosRegistro[playerid][0], "Mujer"); } else if(PlayerInfo[playerid][sexo] == 1) { PlayerInfo[playerid][sexo] = 0; SetPlayerSkin(playerid, 60); PlayerTextDrawSetString(playerid, DatosRegistro[playerid][0], "Hombre"); } } if(clickedid == MenuRegistro[4]) { if(PlayerInfo[playerid][sexo] == 0) { PlayerInfo[playerid][sexo] = 1; SetPlayerSkin(playerid, 192); PlayerTextDrawSetString(playerid, DatosRegistro[playerid][0], "Mujer"); } else if(PlayerInfo[playerid][sexo] == 1) { PlayerInfo[playerid][sexo] = 0; SetPlayerSkin(playerid, 60); PlayerTextDrawSetString(playerid, DatosRegistro[playerid][0], "Hombre"); } } if(clickedid == MenuRegistro[8]) { if(PlayerInfo[playerid][edad] == 18) return 1; PlayerInfo[playerid][edad] --; new str[3]; format(str, 3, "%d", PlayerInfo[playerid][edad]); PlayerTextDrawSetString(playerid, DatosRegistro[playerid][1], str); } if(clickedid == MenuRegistro[7]) { if(PlayerInfo[playerid][edad] == 45) return 1; PlayerInfo[playerid][edad] ++; new str[3]; format(str, 3, "%d", PlayerInfo[playerid][edad]); PlayerTextDrawSetString(playerid, DatosRegistro[playerid][1], str); } if(clickedid == MenuRegistro[10]) { if(PlayerInfo[playerid][origen] == 0) { PlayerTextDrawSetString(playerid, DatosRegistro[playerid][3], "Los Santos"); PlayerInfo[playerid][origen] = 2; } else if(PlayerInfo[playerid][origen] == 1) { PlayerTextDrawSetString(playerid, DatosRegistro[playerid][3], "San Fierro"); PlayerInfo[playerid][origen] = 0; } else if(PlayerInfo[playerid][origen] == 2) { PlayerTextDrawSetString(playerid, DatosRegistro[playerid][3], "Las Vegas"); PlayerInfo[playerid][origen] = 1; } } if(clickedid == MenuRegistro[11]) { if(PlayerInfo[playerid][origen] == 0) { PlayerTextDrawSetString(playerid, DatosRegistro[playerid][3], "Las Vegas"); PlayerInfo[playerid][origen] = 1; } else if(PlayerInfo[playerid][origen] == 1) { PlayerTextDrawSetString(playerid, DatosRegistro[playerid][3], "Los Santos"); PlayerInfo[playerid][origen] = 2; } else if(PlayerInfo[playerid][origen] == 2) { PlayerTextDrawSetString(playerid, DatosRegistro[playerid][3], "San Fierro"); PlayerInfo[playerid][origen] = 0; } } if(clickedid == MenuRegistro[12]) { StopAudioStreamForPlayer(playerid); loop(0, 20, a) SendClientMessage(playerid, -1, " "); SetPVarInt(playerid, "newuser", 2); P_newuser[playerid] = 1; PlayerTextDrawSetString(playerid, Conceptos[2][playerid], "Conceptos de ROL - OP"); PlayerTextDrawSetString(playerid, Conceptos[3][playerid], simbolos("OnPlayer~n~Quiere decir En el personaje~n~lo cual significa que es cuando se rolea~n~Ejemplo: \"Buenos dнas, seсor\" ~n~~n~Los canales OP son: /s /g /me /do")); for(new i = 0; i < 15; i++) SendClientMessage(playerid, -1, " "); for(new i = 0; i < sizeof(Conceptos); i++) PlayerTextDrawShow(playerid, Conceptos[i][playerid]); SelectTextDraw(playerid, 0x33AA33AA); P_player_tutorial[playerid] = 1; TogglePlayerSpectating(playerid, false); SpawnPlayer(playerid); return 1; } }
Код:
//Registro MenuRegistro[0] = TextDrawCreate(176.399917, 42.906661, "box"); TextDrawLetterSize(MenuRegistro[0], 0.000000, 35.760047); TextDrawTextSize(MenuRegistro[0], 412.399902, 0.000000); TextDrawAlignment(MenuRegistro[0], 1); TextDrawColor(MenuRegistro[0], -1); TextDrawUseBox(MenuRegistro[0], 1); TextDrawBoxColor(MenuRegistro[0], -1061109647); TextDrawSetShadow(MenuRegistro[0], 0); TextDrawSetOutline(MenuRegistro[0], 0); TextDrawBackgroundColor(MenuRegistro[0], 255); TextDrawFont(MenuRegistro[0], 1); TextDrawSetProportional(MenuRegistro[0], 1); TextDrawSetShadow(MenuRegistro[0], 0); MenuRegistro[1] = TextDrawCreate(193.999969, 63.813320, "box"); TextDrawLetterSize(MenuRegistro[1], 0.000000, 31.199995); TextDrawTextSize(MenuRegistro[1], 390.799926, 0.000000); TextDrawAlignment(MenuRegistro[1], 1); TextDrawColor(MenuRegistro[1], -1); TextDrawUseBox(MenuRegistro[1], 1); TextDrawBoxColor(MenuRegistro[1], 9268894); TextDrawSetShadow(MenuRegistro[1], 0); TextDrawSetOutline(MenuRegistro[1], 0); TextDrawBackgroundColor(MenuRegistro[1], 255); TextDrawFont(MenuRegistro[1], 1); TextDrawSetProportional(MenuRegistro[1], 1); TextDrawSetShadow(MenuRegistro[1], 0); MenuRegistro[2] = TextDrawCreate(240.399902, 74.266693, "Registro"); TextDrawLetterSize(MenuRegistro[2], 0.517600, 2.339199); TextDrawAlignment(MenuRegistro[2], 1); TextDrawColor(MenuRegistro[2], -1); TextDrawSetShadow(MenuRegistro[2], 0); TextDrawSetOutline(MenuRegistro[2], 0); TextDrawBackgroundColor(MenuRegistro[2], 255); TextDrawFont(MenuRegistro[2], 2); TextDrawSetProportional(MenuRegistro[2], 1); TextDrawSetShadow(MenuRegistro[2], 0); MenuRegistro[3] = TextDrawCreate(240.400009, 127.279991, "box"); TextDrawLetterSize(MenuRegistro[3], 0.000000, 2.399999); TextDrawTextSize(MenuRegistro[3], 342.000183, 0.000000); TextDrawAlignment(MenuRegistro[3], 1); TextDrawColor(MenuRegistro[3], -1); TextDrawUseBox(MenuRegistro[3], 1); TextDrawBoxColor(MenuRegistro[3], 133); TextDrawSetShadow(MenuRegistro[3], 0); TextDrawSetOutline(MenuRegistro[3], 0); TextDrawBackgroundColor(MenuRegistro[3], 255); TextDrawFont(MenuRegistro[3], 1); TextDrawSetProportional(MenuRegistro[3], 1); TextDrawSetShadow(MenuRegistro[3], 0); MenuRegistro[4] = TextDrawCreate(345.999725, 125.039978, "~>~"); TextDrawLetterSize(MenuRegistro[4], 0.000000, 2.400002); TextDrawTextSize(MenuRegistro[4], 413.199615, 0.000000); TextDrawAlignment(MenuRegistro[4], 1); TextDrawColor(MenuRegistro[4], -1); TextDrawUseBox(MenuRegistro[4], 1); TextDrawBoxColor(MenuRegistro[4], 0); TextDrawSetShadow(MenuRegistro[4], 0); TextDrawSetOutline(MenuRegistro[4], 0); TextDrawBackgroundColor(MenuRegistro[4], 255); TextDrawFont(MenuRegistro[4], 1); TextDrawSetProportional(MenuRegistro[4], 1); TextDrawSetShadow(MenuRegistro[4], 0); TextDrawSetSelectable(MenuRegistro[4], true); MenuRegistro[5] = TextDrawCreate(213.999786, 124.333343, "~<~"); TextDrawLetterSize(MenuRegistro[5], 0.000000, 2.400002); TextDrawTextSize(MenuRegistro[5], 281.199645, 0.000000); TextDrawAlignment(MenuRegistro[5], 1); TextDrawColor(MenuRegistro[5], -1); TextDrawUseBox(MenuRegistro[5], 1); TextDrawBoxColor(MenuRegistro[5], 0); TextDrawSetShadow(MenuRegistro[5], 0); TextDrawSetOutline(MenuRegistro[5], 0); TextDrawBackgroundColor(MenuRegistro[5], 255); TextDrawFont(MenuRegistro[5], 1); TextDrawSetProportional(MenuRegistro[5], 1); TextDrawSetShadow(MenuRegistro[5], 0); TextDrawSetSelectable(MenuRegistro[5], true); MenuRegistro[6] = TextDrawCreate(240.400009, 177.483001, "box"); TextDrawLetterSize(MenuRegistro[6], 0.000000, 2.399999); TextDrawTextSize(MenuRegistro[6], 342.000183, 0.000000); TextDrawAlignment(MenuRegistro[6], 1); TextDrawColor(MenuRegistro[6], -1); TextDrawUseBox(MenuRegistro[6], 1); TextDrawBoxColor(MenuRegistro[6], 133); TextDrawSetShadow(MenuRegistro[6], 0); TextDrawSetOutline(MenuRegistro[6], 0); TextDrawBackgroundColor(MenuRegistro[6], 255); TextDrawFont(MenuRegistro[6], 1); TextDrawSetProportional(MenuRegistro[6], 1); TextDrawSetShadow(MenuRegistro[6], 0); MenuRegistro[7] = TextDrawCreate(345.999725, 175.342819, "~>~"); TextDrawLetterSize(MenuRegistro[7], 0.000000, 2.400002); TextDrawTextSize(MenuRegistro[7], 413.199615, 0.000000); TextDrawAlignment(MenuRegistro[7], 1); TextDrawColor(MenuRegistro[7], -1); TextDrawUseBox(MenuRegistro[7], 1); TextDrawBoxColor(MenuRegistro[7], 0); TextDrawSetShadow(MenuRegistro[7], 0); TextDrawSetOutline(MenuRegistro[7], 0); TextDrawBackgroundColor(MenuRegistro[7], 255); TextDrawFont(MenuRegistro[7], 1); TextDrawSetProportional(MenuRegistro[7], 1); TextDrawSetShadow(MenuRegistro[7], 0); TextDrawSetSelectable(MenuRegistro[7], true); MenuRegistro[8] = TextDrawCreate(213.999786, 176.536254, "~<~"); TextDrawLetterSize(MenuRegistro[8], 0.000000, 2.400002); TextDrawTextSize(MenuRegistro[8], 281.199645, 0.000000); TextDrawAlignment(MenuRegistro[8], 1); TextDrawColor(MenuRegistro[8], -1); TextDrawUseBox(MenuRegistro[8], 1); TextDrawBoxColor(MenuRegistro[8], 0); TextDrawSetShadow(MenuRegistro[8], 0); TextDrawSetOutline(MenuRegistro[8], 0); TextDrawBackgroundColor(MenuRegistro[8], 255); TextDrawFont(MenuRegistro[8], 1); TextDrawSetProportional(MenuRegistro[8], 1); TextDrawSetShadow(MenuRegistro[8], 0); TextDrawSetSelectable(MenuRegistro[8], true); MenuRegistro[9] = TextDrawCreate(240.400009, 223.385803, "box"); TextDrawLetterSize(MenuRegistro[9], 0.000000, 2.399999); TextDrawTextSize(MenuRegistro[9], 342.000183, 0.000000); TextDrawAlignment(MenuRegistro[9], 1); TextDrawColor(MenuRegistro[9], -1); TextDrawUseBox(MenuRegistro[9], 1); TextDrawBoxColor(MenuRegistro[9], 133); TextDrawSetShadow(MenuRegistro[9], 0); TextDrawSetOutline(MenuRegistro[9], 0); TextDrawBackgroundColor(MenuRegistro[9], 255); TextDrawFont(MenuRegistro[9], 1); TextDrawSetProportional(MenuRegistro[9], 1); TextDrawSetShadow(MenuRegistro[9], 0); MenuRegistro[10] = TextDrawCreate(213.999786, 222.139038, "~<~"); TextDrawLetterSize(MenuRegistro[10], 0.000000, 2.400002); TextDrawTextSize(MenuRegistro[10], 281.199645, 0.000000); TextDrawAlignment(MenuRegistro[10], 1); TextDrawColor(MenuRegistro[10], -1); TextDrawUseBox(MenuRegistro[10], 1); TextDrawBoxColor(MenuRegistro[10], 0); TextDrawSetShadow(MenuRegistro[10], 0); TextDrawSetOutline(MenuRegistro[10], 0); TextDrawBackgroundColor(MenuRegistro[10], 255); TextDrawFont(MenuRegistro[10], 1); TextDrawSetProportional(MenuRegistro[10], 1); TextDrawSetShadow(MenuRegistro[10], 0); TextDrawSetSelectable(MenuRegistro[10], true); MenuRegistro[11] = TextDrawCreate(345.999725, 220.845596, "~>~"); TextDrawLetterSize(MenuRegistro[11], 0.000000, 2.400002); TextDrawTextSize(MenuRegistro[11], 413.199615, 0.000000); TextDrawAlignment(MenuRegistro[11], 1); TextDrawColor(MenuRegistro[11], -1); TextDrawUseBox(MenuRegistro[11], 1); TextDrawBoxColor(MenuRegistro[11], 0); TextDrawSetShadow(MenuRegistro[11], 0); TextDrawSetOutline(MenuRegistro[11], 0); TextDrawBackgroundColor(MenuRegistro[11], 255); TextDrawFont(MenuRegistro[11], 1); TextDrawSetProportional(MenuRegistro[11], 1); TextDrawSetShadow(MenuRegistro[11], 0); TextDrawSetSelectable(MenuRegistro[11], true); MenuRegistro[12] = TextDrawCreate(251.600158, 275.120056, "Comenzar"); TextDrawLetterSize(MenuRegistro[12], 0.471200, 2.234665); TextDrawAlignment(MenuRegistro[12], 1); TextDrawColor(MenuRegistro[12], 8388863); TextDrawSetShadow(MenuRegistro[12], 1); TextDrawSetOutline(MenuRegistro[12], 0); TextDrawBackgroundColor(MenuRegistro[12], 255); TextDrawFont(MenuRegistro[12], 1); TextDrawSetProportional(MenuRegistro[12], 1); TextDrawSetShadow(MenuRegistro[12], 1); TextDrawSetSelectable(MenuRegistro[12], true);