Mino1478 0 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 Zdravím, neviem z akého dôvodu mi nezobrazuje id v chatu. Išlo mi to nedávno, a zrazu mi to nejde. public OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "(ID:%d): %s", playerid, text); SendPlayerMessageToAll(playerid, string); return 0; } Link to comment Share on other sites More sharing options...
0 MIKI785 14 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 SendPlayerMessageToAll(playerid, string); ja pawn neumim ale myslim si ze to playerid tam nema co delat, kdyz je to vsem. EDIT: Moje chyba, nemas spis pouzit http://wiki.sa-mp.com/wiki/SendClientMessageToAll ? Link to comment Share on other sites More sharing options...
0 jenkings 121 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 SendPlayerMessageToAll(playerid, string); ja pawn neumim ale myslim si ze to playerid tam nema co delat, kdyz je to vsem. Tak by to bylo u SendClientMessageToAll ale tohle je SendPlayerMessageToAll a to playerid je od koho ta zpráva je. Jinak ten kód se mi zdá v pořádku Link to comment Share on other sites More sharing options...
0 DooM 93 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 public OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "(ID:%d): %s", playerid, text); SendClientMessageToAll(0xff0000,string); return 0; } Link to comment Share on other sites More sharing options...
0 jenkings 121 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 Doom -> Funguje to i s tím SendPlayerMessageToAll. Já to tak mám v módu taky a funguje mi to normálně. Jeho script je správně,zřejmě má chybu někde jinde Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 public OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "(ID:%d): %s", playerid, text); SendClientMessageToAll(0xff0000,string); return 0; } teď to nebude psát jméno ale třeba (ID:0): DooM new Link to comment Share on other sites More sharing options...
0 Mino1478 0 Odesláno: 27. Duben, 2012 Author Share Odesláno: 27. Duben, 2012 Ale aj tak to ID v chate nepíše. Sakra to je zaujímave Link to comment Share on other sites More sharing options...
0 Pepa 2 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 dal jsi za to toto ? return 0; } Link to comment Share on other sites More sharing options...
0 Glamorous 0 Odesláno: 27. Duben, 2012 Share Odesláno: 27. Duben, 2012 public OnPlayerText(playerid, text[]){ new string[128]; format(string, 128, "(ID:%d): %s", playerid, text); SendPlayerMessageToAll(playerid, string); return 0; } takto mi to ide Link to comment Share on other sites More sharing options...
0 Mino1478 0 Odesláno: 29. Duben, 2012 Author Share Odesláno: 29. Duben, 2012 Vyriešené. Díky Vám za rady. LOCK môžete Link to comment Share on other sites More sharing options...
Dotaz
Mino1478 0
Zdravím, neviem z akého dôvodu mi nezobrazuje id v chatu.
Išlo mi to nedávno, a zrazu mi to nejde.
Link to comment
Share on other sites
9 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