Peršokti į turinį

textdraw'o problema


Recommended Posts

Susidūriau su problema, yra stocke prisijungimo dialogas ir kitam stocke registracijos dialogas.

tai padariau jog kaip paspaudi ant pasirinkto textdraw'o rodo kas viduje stocko(nežinau kaip paaiškint :D) ir kaip paspaudžiu ant to textdraw'o niekas nevyksta.

Kodas:

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == RegPris0[playerid]){
RegistracijosLangas(playerid);
}
if(playertextid == RegPris5[playerid]){
PrisijungimoLangas(playerid);
}
	return 1;
}

Stockai:

stock PrisijungimoLangas(playerid)
{
	new String[400];

	format(String, sizeof(String), "tekstas", GetPlayerNameEx(playerid), GetPlayerIpEx(playerid), GetPlayerPing(playerid), playerid);
	ShowPlayerDialog(playerid, PrisijungimoDialogas, DIALOG_STYLE_PASSWORD, "SUNGAM", String, "Jungtis", "");

	return 1;
}

stock RegistracijosLangas(playerid)
{
	new String[400];
	format(String, sizeof(String), "tekstas", GetPlayerNameEx(playerid), GetPlayerIpEx(playerid), GetPlayerPing(playerid), playerid);
	ShowPlayerDialog(playerid, RegistracijosDialogas, DIALOG_STYLE_PASSWORD, "SUNGAM", String, "Tęsti", "");
	return 1;
}

Reikia pagalbos

Nuoroda į komentarą
Dalintis per kitą puslapį

prieš 2 valandas(-ų), ALFRED. parašė:

Jų sukūrimo kodą pateik.

yra kintamieji prirašyti

Textdraw0 = TextDrawCreate(508.285705, 105.180000, "usebox");
TextDrawLetterSize(Textdraw0, 0.000000, 25.899631);
TextDrawTextSize(Textdraw0, 143.904724, 0.000000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 102);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 0);

Textdraw1 = TextDrawCreate(495.619018, 104.106636, "LD_SPAC:white");
TextDrawLetterSize(Textdraw1, 0.000000, 0.000000);
TextDrawTextSize(Textdraw1, 11.047622, 12.373340);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 41215);
TextDrawSetShadow(Textdraw1, -122);
TextDrawSetOutline(Textdraw1, 0);
TextDrawFont(Textdraw1, 4);

Textdraw2 = TextDrawCreate(380.571441, 104.106666, "LD_SPAC:white");
TextDrawLetterSize(Textdraw2, 0.000000, 0.000000);
TextDrawTextSize(Textdraw2, 126.095245, 157.866668);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 16777215);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 0);
TextDrawFont(Textdraw2, 4);

Textdraw3 = TextDrawCreate(382.095214, 261.546661, "LD_SPAC:white");
TextDrawLetterSize(Textdraw3, 0.000000, 0.000000);
TextDrawTextSize(Textdraw3, 124.571472, 78.506683);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, 8388863);
TextDrawUseBox(Textdraw3, true);
TextDrawBoxColor(Textdraw3, 0);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, -36);
TextDrawFont(Textdraw3, 4);

Textdraw4 = TextDrawCreate(385.142852, 107.520004, "ld_pool:ball");
TextDrawLetterSize(Textdraw4, 0.000000, 0.000000);
TextDrawTextSize(Textdraw4, 72.000030, 82.346679);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -65281);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 0);
TextDrawFont(Textdraw4, 4);

Textdraw5 = TextDrawCreate(380.190429, 104.106666, "LD_SPAC:white");
TextDrawLetterSize(Textdraw5, 0.000000, 0.000000);
TextDrawTextSize(Textdraw5, 1.904754, 235.946685);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -1);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 0);
TextDrawFont(Textdraw5, 4);

Textdraw6 = TextDrawCreate(380.190460, 197.973281, "LD_SPAC:white");
TextDrawLetterSize(Textdraw6, 0.000000, 0.000000);
TextDrawTextSize(Textdraw6, -234.666656, -2.560003);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, -1);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 0);
TextDrawFont(Textdraw6, 4);

Textdraw7 = TextDrawCreate(152.000030, 113.066680, "");
TextDrawLetterSize(Textdraw7, 0.115904, 1.271466);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, -1);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 1);
TextDrawBackgroundColor(Textdraw7, 51);
TextDrawFont(Textdraw7, 1);
TextDrawSetProportional(Textdraw7, 1);

Textdraw8 = TextDrawCreate(390.095184, 133.546691, "Sunny");
TextDrawLetterSize(Textdraw8, 0.328094, 1.279999);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, -5963521);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 1);
TextDrawBackgroundColor(Textdraw8, 51);
TextDrawFont(Textdraw8, 1);
TextDrawSetProportional(Textdraw8, 1);

Textdraw9 = TextDrawCreate(400.761901, 144.213302, "Game");
TextDrawLetterSize(Textdraw9, 0.449999, 1.600000);
TextDrawAlignment(Textdraw9, 1);
TextDrawColor(Textdraw9, -1061109505);
TextDrawSetShadow(Textdraw9, 0);
TextDrawSetOutline(Textdraw9, 1);
TextDrawBackgroundColor(Textdraw9, 51);
TextDrawFont(Textdraw9, 1);
TextDrawSetProportional(Textdraw9, 1);

Textdraw10 = TextDrawCreate(495.238098, 103.680000, "LD_SPAC:white");
TextDrawLetterSize(Textdraw10, 0.000000, 0.000000);
TextDrawTextSize(Textdraw10, 11.428586, 14.506668);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, -16776961);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 0);
TextDrawFont(Textdraw10, 4);
TextDrawSetSelectable(Textdraw10, true);

RegPris0[playerid] = CreatePlayerTextDraw(playerid, 166.476242, 301.653350, "Registracija");
PlayerTextDrawLetterSize(playerid, RegPris0[playerid], 0.449999, 1.600000);
PlayerTextDrawTextSize(playerid, RegPris0[playerid], -1205.714111, 674.133361);
PlayerTextDrawAlignment(playerid, RegPris0[playerid], 1);
PlayerTextDrawColor(playerid, RegPris0[playerid], 255);
PlayerTextDrawUseBox(playerid, RegPris0[playerid], true);
PlayerTextDrawBoxColor(playerid, RegPris0[playerid], 0);
PlayerTextDrawSetShadow(playerid, RegPris0[playerid], -2);
PlayerTextDrawSetOutline(playerid, RegPris0[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, RegPris0[playerid], 51);
PlayerTextDrawFont(playerid, RegPris0[playerid], 0);
PlayerTextDrawSetProportional(playerid, RegPris0[playerid], 1);
PlayerTextDrawSetSelectable(playerid, RegPris0[playerid], true);

RegPris1[playerid] = CreatePlayerTextDraw(playerid, 153.523803, 284.159973, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, RegPris1[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, RegPris1[playerid], 91.428573, 47.360046);
PlayerTextDrawAlignment(playerid, RegPris1[playerid], 1);
PlayerTextDrawColor(playerid, RegPris1[playerid], -1);
PlayerTextDrawSetShadow(playerid, RegPris1[playerid], 0);
PlayerTextDrawSetOutline(playerid, RegPris1[playerid], 0);
PlayerTextDrawFont(playerid, RegPris1[playerid], 4);
PlayerTextDrawSetSelectable(playerid, RegPris1[playerid], true);

RegPris2[playerid] = CreatePlayerTextDraw(playerid, 256.761901, 284.586669, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, RegPris2[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, RegPris2[playerid], 91.428573, 47.360015);
PlayerTextDrawAlignment(playerid, RegPris2[playerid], 1);
PlayerTextDrawColor(playerid, RegPris2[playerid], -1);
PlayerTextDrawSetShadow(playerid, RegPris2[playerid], 0);
PlayerTextDrawSetOutline(playerid, RegPris2[playerid], 0);
PlayerTextDrawFont(playerid, RegPris2[playerid], 4);
PlayerTextDrawSetSelectable(playerid, RegPris2[playerid], true);

RegPris3[playerid] = CreatePlayerTextDraw(playerid, 245.428573, 286.940002, "usebox");
PlayerTextDrawLetterSize(playerid, RegPris3[playerid], 0.000000, 4.613705);
PlayerTextDrawTextSize(playerid, RegPris3[playerid], 152.666656, 0.000000);
PlayerTextDrawAlignment(playerid, RegPris3[playerid], 1);
PlayerTextDrawColor(playerid, RegPris3[playerid], 0);
PlayerTextDrawUseBox(playerid, RegPris3[playerid], true);
PlayerTextDrawBoxColor(playerid, RegPris3[playerid], 102);
PlayerTextDrawSetShadow(playerid, RegPris3[playerid], 0);
PlayerTextDrawSetOutline(playerid, RegPris3[playerid], 0);
PlayerTextDrawFont(playerid, RegPris3[playerid], 0);
PlayerTextDrawSetSelectable(playerid, RegPris3[playerid], true);

RegPris4[playerid] = CreatePlayerTextDraw(playerid, 348.666687, 287.366668, "usebox");
PlayerTextDrawLetterSize(playerid, RegPris4[playerid], 0.000000, 4.613700);
PlayerTextDrawTextSize(playerid, RegPris4[playerid], 255.904754, 0.000000);
PlayerTextDrawAlignment(playerid, RegPris4[playerid], 1);
PlayerTextDrawColor(playerid, RegPris4[playerid], 0);
PlayerTextDrawUseBox(playerid, RegPris4[playerid], true);
PlayerTextDrawBoxColor(playerid, RegPris4[playerid], 102);
PlayerTextDrawSetShadow(playerid, RegPris4[playerid], 0);
PlayerTextDrawSetOutline(playerid, RegPris4[playerid], 0);
PlayerTextDrawFont(playerid, RegPris4[playerid], 0);
PlayerTextDrawSetSelectable(playerid, RegPris4[playerid], true);

RegPris5[playerid] = CreatePlayerTextDraw(playerid, 264.380981, 300.799987, "Prisijungimas");
PlayerTextDrawLetterSize(playerid, RegPris5[playerid], 0.449999, 1.600000);
PlayerTextDrawTextSize(playerid, RegPris5[playerid], -462.857360, 234.666503);
PlayerTextDrawAlignment(playerid, RegPris5[playerid], 1);
PlayerTextDrawColor(playerid, RegPris5[playerid], 255);
PlayerTextDrawUseBox(playerid, RegPris5[playerid], true);
PlayerTextDrawBoxColor(playerid, RegPris5[playerid], 0);
PlayerTextDrawSetShadow(playerid, RegPris5[playerid], -2);
PlayerTextDrawSetOutline(playerid, RegPris5[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, RegPris5[playerid], 51);
PlayerTextDrawFont(playerid, RegPris5[playerid], 0);
PlayerTextDrawSetProportional(playerid, RegPris5[playerid], 1);
PlayerTextDrawSetSelectable(playerid, RegPris5[playerid], true);

 

Nuoroda į komentarą
Dalintis per kitą puslapį

Ar kai padarai SelectTextdraw rodo su spalva, kad įmanoma pasirinkti, ar aplamai spalva nesikeičia? Ir beto, nereikia PlayerTextDraw tokiem dalykam kaip tekstui kuris nesikeičia pagal žaidėją, paprasčiausiai užtektų TextDrawCreate, ir naudoti TextDrawShowForPlayer.

Redaguota , nario ALFRED.
Nuoroda į komentarą
Dalintis per kitą puslapį

prieš 2 valandas(-ų), ALFRED. parašė:

Ar kai padarai SelectTextdraw rodo su spalva, kad įmanoma pasirinkti, ar aplamai spalva nesikeičia? Ir beto, nereikia PlayerTextDraw tokiem dalykam kaip tekstui kuris nesikeičia pagal žaidėją, paprasčiausiai užtektų TextDrawCreate, ir naudoti TextDrawShowForPlayer.

Rodo

Nuoroda į komentarą
Dalintis per kitą puslapį

Svečias
Ši tema yra užrakinta.
  • Å iame puslapyje narÅ¡o:   0 nariai

    • Nėra registruotų narių peržiÅ«rinčių šį forumą.

×
×
  • Sukurti naują...