Gatsby^ 2 Odesláno: 5. Říjen, 2014 Share Odesláno: 5. Říjen, 2014 Zdravím, na officialnom fóre som našiel tutorial ako spraviť TAG pred meno hráča, no mám problém, že tag aj meno hráča mi zobrazuje celé čierne. Kod: format(string, sizeof(string),"[TAG] %s: %s", pName, text); SendClientMessageToAll(GetPlayerColor(playerid), string); Chcel by som to spraviť aby bol tag napríklad červeny a meno aby malo takú farbu akú má už od prihlasenia danú... Link to comment Share on other sites More sharing options...
0 Invouk 91 Odesláno: 5. Říjen, 2014 Share Odesláno: 5. Říjen, 2014 Tak mu nastav inu farbu .. SetPlayerColor alebo aka je ta Funkci a máš, Link to comment Share on other sites More sharing options...
0 Gatsby^ 2 Odesláno: 5. Říjen, 2014 Author Share Odesláno: 5. Říjen, 2014 No,keby viem ako tak si to už tak spravím. Link to comment Share on other sites More sharing options...
0 sampx 0 Odesláno: 5. Říjen, 2014 Share Odesláno: 5. Říjen, 2014 skus format(string, sizeof(string),"[TAG] {%06x}%s: {FFFFFF}%s",(GetPlayerColor(playerid) >>> 8),pName, text);SendClientMessageToAll(0xFF0000AA,string); Link to comment Share on other sites More sharing options...
0 elRobertino 0 Odesláno: 5. Říjen, 2014 Share Odesláno: 5. Říjen, 2014 TO by mohlo fungovať Link to comment Share on other sites More sharing options...
0 Gatsby^ 2 Odesláno: 5. Říjen, 2014 Author Share Odesláno: 5. Říjen, 2014 Tak ale ja chcem meno hrača nechať originalnej farby Nick predtým : Jozef172: text spravy Nick potom : [TAG] Jozef172: text správy Link to comment Share on other sites More sharing options...
0 elRobertino 0 Odesláno: 7. Říjen, 2014 Share Odesláno: 7. Říjen, 2014 Aha, už viem ako to myslíš, no ja ti stým neporadím... Link to comment Share on other sites More sharing options...
0 HDpawner 0 Odesláno: 7. Říjen, 2014 Share Odesláno: 7. Říjen, 2014 Ahoj robo444, tento odkaz myslím ti pomôže skús odpísať či som ti pomohol alebo nie. http://pawno.cz/topic/50044-titul-new-generation/ Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 7. Říjen, 2014 Share Odesláno: 7. Říjen, 2014 format(string, sizeof(string),"{FF0000}[TAG] %x%s: %s", GetPlayerColor(playerid),pName, text); SendClientMessageToAll(-1, string); Link to comment Share on other sites More sharing options...
0 milous22 14 Odesláno: 7. Říjen, 2014 Share Odesláno: 7. Říjen, 2014 toto ti musí fungovať... format(string, sizeof(string),"[TAG] {%06x}%s: {FFFFFF}%s",(GetPlayerColor(playerid) >>> 8),pName, text);SendClientMessageToAll(0xFF0000AA,string); (dúfam že pri prihlásení/pripojení používaš SetPlayerColor ) Link to comment Share on other sites More sharing options...
0 Gatsby^ 2 Odesláno: 7. Říjen, 2014 Author Share Odesláno: 7. Říjen, 2014 toto ti musí fungovať... (dúfam že pri prihlásení/pripojení používaš SetPlayerColor ) Nie nepoužívam SetPlayerColor format(string, sizeof(string),"{FF0000}[TAG] %x%s: %s", GetPlayerColor(playerid),pName, text);SendClientMessageToAll(-1, string); Namiesto toho %x mi píše ID hráča Link to comment Share on other sites More sharing options...
0 milous22 14 Odesláno: 7. Říjen, 2014 Share Odesláno: 7. Říjen, 2014 Nie nepoužívam SetPlayerColor a prečítal si si tú málo farebnú poznámku k tejto funkcií? WIKI: GetPlayerColor Link to comment Share on other sites More sharing options...
0 Gatsby^ 2 Odesláno: 7. Říjen, 2014 Author Share Odesláno: 7. Říjen, 2014 Tak skúsil som to... TAG už mam normalne farby ako som si nastavil to farba nicku je stale čierna.. Link to comment Share on other sites More sharing options...
0 milous22 14 Odesláno: 7. Říjen, 2014 Share Odesláno: 7. Říjen, 2014 daj kód.. najlepšie by bol celý public.. a tiež to nastavovanie farby (SetPlayerColor) Link to comment Share on other sites More sharing options...
0 Gatsby^ 2 Odesláno: 7. Říjen, 2014 Author Share Odesláno: 7. Říjen, 2014 Do OnPlayerConncect som si šupol : SetPlayerColor(playerid, 0xFF66FFAA); Pod tým mam: public OnPlayerText(playerid, text[]) { new string[256], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName,sizeof(pName)); format(string, sizeof(string),"[TAG] {%06x}%s: {FFFFFF}%s",(GetPlayerColor(playerid) >>> 8),pName, text); SendClientMessageToAll(0xFF0000AA,string); return 0; } Link to comment Share on other sites More sharing options...
0 milous22 14 Odesláno: 7. Říjen, 2014 Share Odesláno: 7. Říjen, 2014 mne to ide normálne [19:48:15] {FFFFFF}SA-MP {B9C9BF}0.3z {FFFFFF}Started [19:48:18] Connecting to 127.0.0.1:7777... [19:48:18] Connected. Joining the game... [19:48:18] Connected to {B9C9BF}milous22 test server [19:48:25] [TAG] {FF66FF}milous22: {FFFFFF}asdawfa [19:48:27] [TAG] {FF66FF}milous22: {FFFFFF}asfcrwad chyba je vo vašom prijímači... Link to comment Share on other sites More sharing options...
0 Gatsby^ 2 Odesláno: 8. Říjen, 2014 Author Share Odesláno: 8. Říjen, 2014 nechápem tomu http://prntscr.com/4u5otz // Skúsil som to na RZE, funguje to... Link to comment Share on other sites More sharing options...
Dotaz
Gatsby^ 2
Zdravím, na officialnom fóre som našiel tutorial ako spraviť TAG pred meno hráča, no mám problém, že tag aj meno hráča mi zobrazuje celé čierne.
Kod:
Chcel by som to spraviť aby bol tag napríklad červeny a meno aby malo takú farbu akú má už od prihlasenia danú...
Link to comment
Share on other sites
16 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now