Jump to content
  • 0

pomoc Id v chate ?


Mino1478

Dotaz

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

9 odpovědí na tuto otázku

Recommended Posts

  • 0
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

  • 0
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

  • 0

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

  • 0
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...