IchNar 0 Odesláno: 27. Srpen, 2017 Share Odesláno: 27. Srpen, 2017 Popis problému: Mám 2 textdrawy,na ktoré sa dá klikať a môj problém je v tom,že keď označí jeden textdraw tak sa označia obidva,že sa obidva textdrawy zčervenajú. Chyby/varování kompilátoru a při běhu: -- Kód: Box[13][playerid] = CreatePlayerTextDraw(playerid, 503.999938, 369.185211, "Zjest"); PlayerTextDrawLetterSize(playerid, Box[13][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Box[13][playerid], 1); PlayerTextDrawColor(playerid, Box[13][playerid], -1); PlayerTextDrawSetShadow(playerid, Box[13][playerid], 0); PlayerTextDrawSetOutline(playerid, Box[13][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Box[13][playerid], 51); PlayerTextDrawFont(playerid, Box[13][playerid], 1); PlayerTextDrawSetProportional(playerid, Box[13][playerid], 1); PlayerTextDrawSetSelectable(playerid, Box[13][playerid], true); Box[15][playerid] = CreatePlayerTextDraw(playerid, 501.666717, 390.340667, "Spat"); PlayerTextDrawLetterSize(playerid, Box[15][playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Box[15][playerid], 1); PlayerTextDrawColor(playerid, Box[15][playerid], -1); PlayerTextDrawSetShadow(playerid, Box[15][playerid], 0); PlayerTextDrawSetOutline(playerid, Box[15][playerid], 1); PlayerTextDrawBackgroundColor(playerid, Box[15][playerid], 51); PlayerTextDrawFont(playerid, Box[15][playerid], 1); PlayerTextDrawSetProportional(playerid, Box[15][playerid], 1); PlayerTextDrawSetSelectable(playerid, Box[15][playerid], true); Dodatečné poznámky: -- Link to comment Share on other sites More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 27. Srpen, 2017 Globální moderátor Share Odesláno: 27. Srpen, 2017 Je tam asi nějaká kolize. Nejlépe to uvidíš, pokud si nastavíš boxy 1 Link to comment Share on other sites More sharing options...
0 IchNar 0 Odesláno: 29. Srpen, 2017 Author Share Odesláno: 29. Srpen, 2017 Ešte jedna mala otazka.Mam progress bar a chcem donho dat aj textdraw s cislom,lenze iba prvy textdraw je vidiet normalne a ostatne su take blede..Tu je screenshot: https://ctrlv.cz/nQp9 to v pravo.. Tu je kód textdrawov: Potreby[0] = TextDrawCreate(566.333190, 125.703697, "100"); TextDrawLetterSize(Potreby[0], 0.286333, 1.425778); TextDrawAlignment(Potreby[0], 1); TextDrawColor(Potreby[0], -1); TextDrawSetShadow(Potreby[0], 0); TextDrawSetOutline(Potreby[0], 0); TextDrawBackgroundColor(Potreby[0], 255); TextDrawFont(Potreby[0], 1); TextDrawSetProportional(Potreby[0], 1); TextDrawSetShadow(Potreby[0], 0); Potreby[1] = TextDrawCreate(565.333251, 141.881439, "100"); TextDrawLetterSize(Potreby[1], 0.286333, 1.425778); TextDrawAlignment(Potreby[1], 1); TextDrawColor(Potreby[1], -1); TextDrawSetShadow(Potreby[1], 0); TextDrawSetOutline(Potreby[1], 0); TextDrawBackgroundColor(Potreby[1], 255); TextDrawFont(Potreby[1], 1); TextDrawSetProportional(Potreby[1], 1); TextDrawSetShadow(Potreby[1], 0); Potreby[2] = TextDrawCreate(564.666625, 159.718444, "100"); TextDrawLetterSize(Potreby[2], 0.286333, 1.425778); TextDrawAlignment(Potreby[2], 1); TextDrawColor(Potreby[2], -1); TextDrawSetShadow(Potreby[2], 0); TextDrawSetOutline(Potreby[2], 0); TextDrawBackgroundColor(Potreby[2], 255); TextDrawFont(Potreby[2], 1); TextDrawSetProportional(Potreby[2], 1); TextDrawSetShadow(Potreby[2], 0); Link to comment Share on other sites More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 29. Srpen, 2017 Globální moderátor Share Odesláno: 29. Srpen, 2017 Dlouho jsem s tim nedelal, ale pokud me pamet neklame, tak staci je presunout az po vytvoreni toho backgroundu, tzn aby tyhle cisla byly vytvoreny az po tom progressbaru CreateProgressBar Potreby[0] = ... CreateProgressBar2 Potreby[1] = ... atd. 1 Link to comment Share on other sites More sharing options...
0 IchNar 0 Odesláno: 29. Srpen, 2017 Author Share Odesláno: 29. Srpen, 2017 Stále tak isto iba ten prvý číselný textdraw je normálny,nechápem prečo.... v OnPlayerConnect tu mám toto Bar0[playerid] = CreatePlayerProgressBar(playerid, 552.000000, 130.000000, 55.500000, 6.199999, -1724710742, 100.0000, 0); Potreby[0] = TextDrawCreate(566.333190, 125.703697, "100"); TextDrawLetterSize(Potreby[0], 0.286333, 1.425778); TextDrawAlignment(Potreby[0], 1); TextDrawColor(Potreby[0], -1); TextDrawSetShadow(Potreby[0], 0); TextDrawSetOutline(Potreby[0], 0); TextDrawBackgroundColor(Potreby[0], 255); TextDrawFont(Potreby[0], 1); TextDrawSetProportional(Potreby[0], 1); TextDrawSetShadow(Potreby[0], 0); Bar1[playerid] = CreatePlayerProgressBar(playerid, 552.000000, 146.000000, 55.500000, 6.199999, 869072810, 100.0000, 0); Potreby[1] = TextDrawCreate(565.333251, 141.881439, "100"); TextDrawLetterSize(Potreby[1], 0.286333, 1.425778); TextDrawAlignment(Potreby[1], 1); TextDrawColor(Potreby[1], -1); TextDrawSetShadow(Potreby[1], 0); TextDrawSetOutline(Potreby[1], 0); TextDrawBackgroundColor(Potreby[1], 255); TextDrawFont(Potreby[1], 1); TextDrawSetProportional(Potreby[1], 1); TextDrawSetShadow(Potreby[1], 0); Bar2[playerid] = CreatePlayerProgressBar(playerid, 552.000000, 164.000000, 55.500000, 6.199999, -65366, 100.0000, 0); Potreby[2] = TextDrawCreate(564.666625, 159.718444, "100"); TextDrawLetterSize(Potreby[2], 0.286333, 1.425778); TextDrawAlignment(Potreby[2], 1); TextDrawColor(Potreby[2], -1); TextDrawSetShadow(Potreby[2], 0); TextDrawSetOutline(Potreby[2], 0); TextDrawBackgroundColor(Potreby[2], 255); TextDrawFont(Potreby[2], 1); TextDrawSetProportional(Potreby[2], 1); TextDrawSetShadow(Potreby[2], 0); A ukazujem ich v OnPlayerSpawn ShowPlayerProgressBar(playerid,Bar0[playerid]); ShowPlayerProgressBar(playerid,Bar1[playerid]); ShowPlayerProgressBar(playerid,Bar2[playerid]); TextDrawShowForPlayer(playerid,Potreby[0]); TextDrawShowForPlayer(playerid,Potreby[1]); TextDrawShowForPlayer(playerid,Potreby[2]); Link to comment Share on other sites More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 29. Srpen, 2017 Globální moderátor Share Odesláno: 29. Srpen, 2017 Jestli ti to nebude vadit, tak mi prosimte posli cele to vytvareni a zobrazovani do PM. Vecer z prace se na to mrknu //edit, tak je to vyresene 1 Link to comment Share on other sites More sharing options...
Dotaz
IchNar 0
Popis problému:
Mám 2 textdrawy,na ktoré sa dá klikať a môj problém je v tom,že keď označí jeden textdraw tak sa označia obidva,že sa obidva textdrawy zčervenajú.
Chyby/varování kompilátoru a při běhu:
--
Kód:
Dodatečné poznámky:
--
Link to comment
Share on other sites
5 odpovědí na tuto otázku
Recommended Posts