16.07.2018, 21:19
Boa noite galera, estou tentando fazer umas playertext selecionбvel para o sistema de login, mas nгo estгo sendo criadas o que а de errado nesse modo que estou fazendo..
A mensagem que coloquei na stock aparece, sinal que a stock й chamada, mas as textdraw nгo
Quem puder ajudar agradeзo desde jб!
Код:
new PlayerText:TextLogin1[ MAX_PLAYERS ], PlayerText:TextLogin2[ MAX_PLAYERS ], PlayerText:TextLogin3[ MAX_PLAYERS ], PlayerText:TextLogin4[ MAX_PLAYERS ], PlayerText:TextLogin5[ MAX_PLAYERS ], PlayerText:TextLogin6[ MAX_PLAYERS ], PlayerText:TextLogin7[ MAX_PLAYERS ], PlayerText:TextLogin8[ MAX_PLAYERS ], PlayerText:TextLogin9[ MAX_PLAYERS ], PlayerText:TextLogin10[ MAX_PLAYERS ], PlayerText:TextLogin11[ MAX_PLAYERS ], PlayerText:TextLogin12[ MAX_PLAYERS ], PlayerText:TextLogin13[ MAX_PLAYERS ], PlayerText:TextLogin14[ MAX_PLAYERS ], PlayerText:TextLogin15[ MAX_PLAYERS ], PlayerText:TextLogin16[ MAX_PLAYERS ] ;
Код:
stock CriarTextsLogin( playerid ) { TextLogin1[ playerid ] = CreatePlayerTextDraw(playerid, 644.352905, 1.499998, "1"); PlayerTextDrawLetterSize(playerid, TextLogin1[ playerid ], 0.000000, 11.933333); PlayerTextDrawTextSize(playerid, TextLogin1[ playerid ], -2.470588, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin1[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin1[ playerid ], 0); PlayerTextDrawUseBox(playerid, TextLogin1[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin1[ playerid ], 102); PlayerTextDrawSetShadow(playerid, TextLogin1[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin1[ playerid ], 0); PlayerTextDrawFont(playerid, TextLogin1[ playerid ], 0); TextLogin2[ playerid ] = CreatePlayerTextDraw(playerid, 642.058715, 404.416931, "2"); PlayerTextDrawLetterSize(playerid, TextLogin2[ playerid ], 0.000000, 11.933333); PlayerTextDrawTextSize(playerid, TextLogin2[ playerid ], -2.470588, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin2[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin2[ playerid ], 0); PlayerTextDrawUseBox(playerid, TextLogin2[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin2[ playerid ], 102); PlayerTextDrawSetShadow(playerid, TextLogin2[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin2[ playerid ], 0); PlayerTextDrawFont(playerid, TextLogin2[ playerid ], 0); TextLogin3[ playerid ] = CreatePlayerTextDraw(playerid, 641.529418, 406.916839, "BARRA1"); PlayerTextDrawLetterSize(playerid, TextLogin3[ playerid ], 0.000000, -0.187034); PlayerTextDrawTextSize(playerid, TextLogin3[ playerid ], -4.823530, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin3[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin3[ playerid ], 65535); PlayerTextDrawUseBox(playerid, TextLogin3[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin3[ playerid ], 65535); PlayerTextDrawSetShadow(playerid, TextLogin3[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin3[ playerid ], 0); PlayerTextDrawBackgroundColor(playerid, TextLogin3[ playerid ], 65535); PlayerTextDrawFont(playerid, TextLogin3[ playerid ], 0); TextLogin4[ playerid ] = CreatePlayerTextDraw(playerid, 645.352844, 108.083442, "BARRA2"); PlayerTextDrawLetterSize(playerid, TextLogin4[ playerid ], 0.000000, -0.187034); PlayerTextDrawTextSize(playerid, TextLogin4[ playerid ], -2.000000, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin4[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin4[ playerid ], 65535); PlayerTextDrawUseBox(playerid, TextLogin4[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin4[ playerid ], 65535); PlayerTextDrawSetShadow(playerid, TextLogin4[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin4[ playerid ], 0); PlayerTextDrawBackgroundColor(playerid, TextLogin4[ playerid ], 65535); PlayerTextDrawFont(playerid, TextLogin4[ playerid ], 0); TextLogin5[ playerid ] = CreatePlayerTextDraw(playerid, 407.176513, 113.499992, "CENTRO"); PlayerTextDrawLetterSize(playerid, TextLogin5[ playerid ], 0.000000, 31.789846); PlayerTextDrawTextSize(playerid, TextLogin5[ playerid ], 227.176544, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin5[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin5[ playerid ], 0); PlayerTextDrawUseBox(playerid, TextLogin5[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin5[ playerid ], 102); PlayerTextDrawSetShadow(playerid, TextLogin5[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin5[ playerid ], 0); PlayerTextDrawFont(playerid, TextLogin5[ playerid ], 2); TextLogin6[ playerid ] = CreatePlayerTextDraw(playerid, 258.353057, 104.416633, "LYW"); PlayerTextDrawLetterSize(playerid, TextLogin6[ playerid ], 0.967647, 4.930831); PlayerTextDrawTextSize(playerid, TextLogin6[ playerid ], 420.235198, 467.833465); PlayerTextDrawAlignment(playerid, TextLogin6[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin6[ playerid ], 41215); PlayerTextDrawSetShadow(playerid, TextLogin6[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin6[ playerid ], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin6[ playerid ], -1); PlayerTextDrawFont(playerid, TextLogin6[ playerid ], 1); PlayerTextDrawSetProportional(playerid, TextLogin6[ playerid ], 1); TextLogin7[ playerid ] = CreatePlayerTextDraw(playerid, 331.764617, 112.000000, "RPG 1.0"); PlayerTextDrawLetterSize(playerid, TextLogin7[ playerid ], 0.383176, 1.775000); PlayerTextDrawAlignment(playerid, TextLogin7[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin7[ playerid ], -1); PlayerTextDrawSetShadow(playerid, TextLogin7[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin7[ playerid ], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin7[ playerid ], 51); PlayerTextDrawFont(playerid, TextLogin7[ playerid ], 1); PlayerTextDrawSetProportional(playerid, TextLogin7[ playerid ], 1); TextLogin8[ playerid ] = CreatePlayerTextDraw(playerid, 233.176147, 162.166854, "BARRA L1"); PlayerTextDrawLetterSize(playerid, TextLogin8[ playerid ], 0.000000, 13.507081); PlayerTextDrawTextSize(playerid, TextLogin8[ playerid ], 228.588241, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin8[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin8[ playerid ], 65535); PlayerTextDrawUseBox(playerid, TextLogin8[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin8[ playerid ], 65535); PlayerTextDrawSetShadow(playerid, TextLogin8[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin8[ playerid ], 0); PlayerTextDrawBackgroundColor(playerid, TextLogin8[ playerid ], 65535); PlayerTextDrawFont(playerid, TextLogin8[ playerid ], 0); TextLogin9[ playerid ] = CreatePlayerTextDraw(playerid, 405.470001, 162.000213, "BARRA L2"); PlayerTextDrawLetterSize(playerid, TextLogin9[ playerid ], 0.000000, 13.365905); PlayerTextDrawTextSize(playerid, TextLogin9[ playerid ], 400.823272, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin9[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin9[ playerid ], 65535); PlayerTextDrawUseBox(playerid, TextLogin9[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin9[ playerid ], 65535); PlayerTextDrawSetShadow(playerid, TextLogin9[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin9[ playerid ], 0); PlayerTextDrawBackgroundColor(playerid, TextLogin9[ playerid ], 65535); PlayerTextDrawFont(playerid, TextLogin9[ playerid ], 0); TextLogin10[ playerid ] = CreatePlayerTextDraw(playerid, 385.763793, 129.750244, "BARRA RPG"); PlayerTextDrawLetterSize(playerid, TextLogin10[ playerid ], 0.000000, -0.234089); PlayerTextDrawTextSize(playerid, TextLogin10[ playerid ], 328.352539, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin10[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin10[ playerid ], 65535); PlayerTextDrawUseBox(playerid, TextLogin10[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin10[ playerid ], 65535); PlayerTextDrawSetShadow(playerid, TextLogin10[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin10[ playerid ], 0); PlayerTextDrawBackgroundColor(playerid, TextLogin10[ playerid ], 65535); PlayerTextDrawFont(playerid, TextLogin10[ playerid ], 0); TextLogin11[ playerid ] = CreatePlayerTextDraw(playerid, 370.470703, 185.250000, "BARRA L"); PlayerTextDrawLetterSize(playerid, TextLogin11[ playerid ], 0.000000, 0.945861); PlayerTextDrawTextSize(playerid, TextLogin11[ playerid ], 264.352874, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin11[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin11[ playerid ], 0); PlayerTextDrawUseBox(playerid, TextLogin11[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin11[ playerid ], -2139062017); PlayerTextDrawSetShadow(playerid, TextLogin11[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin11[ playerid ], 0); PlayerTextDrawFont(playerid, TextLogin11[ playerid ], 0); TextLogin12[ playerid ] = CreatePlayerTextDraw(playerid, 290.823394, 185.500030, "LOGIN"); PlayerTextDrawLetterSize(playerid, TextLogin12[ playerid ], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, TextLogin12[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin12[ playerid ], -1); PlayerTextDrawSetShadow(playerid, TextLogin12[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin12[ playerid ], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin12[ playerid ], 255); PlayerTextDrawFont(playerid, TextLogin12[ playerid ], 2); PlayerTextDrawSetProportional(playerid, TextLogin12[ playerid ], 1); PlayerTextDrawSetSelectable(playerid, TextLogin12[ playerid ], true); TextLogin13[ playerid ] = CreatePlayerTextDraw(playerid, 371.000122, 227.666275, "BARRA R"); PlayerTextDrawLetterSize(playerid, TextLogin13[ playerid ], 0.000000, 0.945861); PlayerTextDrawTextSize(playerid, TextLogin13[ playerid ], 264.352874, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin13[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin13[ playerid ], 0); PlayerTextDrawUseBox(playerid, TextLogin13[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin13[ playerid ], -2139062017); PlayerTextDrawSetShadow(playerid, TextLogin13[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin13[ playerid ], 0); PlayerTextDrawFont(playerid, TextLogin13[ playerid ], 0); TextLogin14[ playerid ] = CreatePlayerTextDraw(playerid, 271.117523, 226.750015, "RECUPERAR SENHA"); PlayerTextDrawLetterSize(playerid, TextLogin14[ playerid ], 0.238705, 1.850834); PlayerTextDrawTextSize(playerid, TextLogin14[ playerid ], -43.764709, -2.333333); PlayerTextDrawAlignment(playerid, TextLogin14[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin14[ playerid ], -1); PlayerTextDrawSetShadow(playerid, TextLogin14[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin14[ playerid ], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin14[ playerid ], 255); PlayerTextDrawFont(playerid, TextLogin14[ playerid ], 2); PlayerTextDrawSetProportional(playerid, TextLogin14[ playerid ], 1); PlayerTextDrawSetSelectable(playerid, TextLogin14[ playerid ], true); TextLogin15[ playerid ] = CreatePlayerTextDraw(playerid, 371.058959, 270.666992, "BARRA S"); PlayerTextDrawLetterSize(playerid, TextLogin15[ playerid ], 0.000000, 0.945861); PlayerTextDrawTextSize(playerid, TextLogin15[ playerid ], 264.352874, 0.000000); PlayerTextDrawAlignment(playerid, TextLogin15[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin15[ playerid ], 0); PlayerTextDrawUseBox(playerid, TextLogin15[ playerid ], true); PlayerTextDrawBoxColor(playerid, TextLogin15[ playerid ], -2139062017); PlayerTextDrawSetShadow(playerid, TextLogin15[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin15[ playerid ], 0); PlayerTextDrawFont(playerid, TextLogin15[ playerid ], 0); TextLogin16[ playerid ] = CreatePlayerTextDraw(playerid, 295.117523, 270.500000, "SAIR"); PlayerTextDrawLetterSize(playerid, TextLogin16[ playerid ], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, TextLogin16[ playerid ], 1); PlayerTextDrawColor(playerid, TextLogin16[ playerid ], -1); PlayerTextDrawSetShadow(playerid, TextLogin16[ playerid ], 0); PlayerTextDrawSetOutline(playerid, TextLogin16[ playerid ], 1); PlayerTextDrawBackgroundColor(playerid, TextLogin16[ playerid ], 255); PlayerTextDrawFont(playerid, TextLogin16[ playerid ], 2); PlayerTextDrawSetProportional(playerid, TextLogin16[ playerid ], 1); PlayerTextDrawSetSelectable(playerid, TextLogin16[ playerid ], true); SendClientMessage( playerid, COLOR_SISTEMA, "[ > ] Chamou CriarTextsLogin !" ); return 1; }
Код:
public OnPlayerRequestClass( playerid, classid ) { if( IsPlayerNPC( playerid )) { SpawnPlayer( playerid ); return 1; } if( !IsPlayerNPC( playerid )) { LimparChat( playerid, 50 ); if( pInfo[ playerid ][ Logado ] == false ) { CriarTextsLogin( playerid ); } }
Quem puder ajudar agradeзo desde jб!