[SOLVED]Rank Chat
#1

Lock Please
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(GetPlayerScore(playerid) == 0)
  {
    new str[128], Pname[24];
    GetPlayerName(playerid, Pname, 24);
    format(str, sizeof(str), "[Private]%s: %s", Pname, text);
    SendClientMessageToAll(COLOR_ORANGE, str);
  }
  return 0;
}
Reply
#3

pawn Код:
public OnPlayerText(playerid, text[])
{

   
  if(GetPlayerScore(playerid) == 0)
  {
  new str[128];
  new name[100];
  GetPlayerName(playerid, name, sizeof(name));
  format(str, sizeof(str), "[Private]%s: %s", name , text);
  SendClientMessageToAll(COLOR_ORANGE, str);
 
  }
  return 0;
}
Reply
#4

Quote:
Originally Posted by Josh!
pawn Код:
public OnPlayerText(playerid, text[])
{

   
  if(GetPlayerScore(playerid) == 0)
  {
  new str[128];
  new name[100];
  GetPlayerName(playerid, name, sizeof(name));
  format(str, sizeof(str), "[Private]%s: %s", name , text);
  SendClientMessageToAll(COLOR_ORANGE, str);
 
  }
  return 0;
}
That's the same as I posted, why are you using
pawn Код:
new name[100];
The max player name is only 24, there is 76 extra cells that are not needed, the less the better .
Reply
#5

I'm pretty sure max. player names = 16.
Reply
#6

Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by Josh!
pawn Код:
public OnPlayerText(playerid, text[])
{

   
  if(GetPlayerScore(playerid) == 0)
  {
  new str[128];
  new name[100];
  GetPlayerName(playerid, name, sizeof(name));
  format(str, sizeof(str), "[Private]%s: %s", name , text);
  SendClientMessageToAll(COLOR_ORANGE, str);
 
  }
  return 0;
}
That's the same as I posted, why are you using
pawn Код:
new name[100];
The max player name is only 24, there is 76 extra cells that are not needed, the less the better .
Actually you posted it at nearly the same time, and it doesn't matter if it's 76 extra cells, who gives a fuck?
Reply
#7

Quote:
Originally Posted by Calon
I'm pretty sure max. player names = 16.
Quote:
Originally Posted by a_samp
pawn Код:
// Limits and internal constants
#define MAX_PLAYER_NAME                         (24)
Reply
#8

Thanks for all your help

But what Im looking for is If Getplayerscore is 0 then when onplayertext player only has to use (General)Skulls: Hey

Like that
Reply
#9

Thanks Guys It Worked !
Reply
#10

Quote:
Originally Posted by Skulls
Thanks for all your help

But what Im looking for is If Getplayerscore is 0 then when onplayertext player only has to use (General)Skulls: Hey

Like that
What the fuck are you on about?
Reply
#11

Quote:
Originally Posted by Josh!
Quote:
Originally Posted by Skulls
Thanks for all your help

But what Im looking for is If Getplayerscore is 0 then when onplayertext player only has to use (General)Skulls: Hey

Like that
What the fuck are you on about?
Dude watch your Language and I write that before I tested them
Reply
#12

Quote:
Originally Posted by Skulls
Quote:
Originally Posted by Josh!
Quote:
Originally Posted by Skulls
Thanks for all your help

But what Im looking for is If Getplayerscore is 0 then when onplayertext player only has to use (General)Skulls: Hey

Like that
What the fuck are you on about?
Dude watch your Language and I write that before I tested them
You probably didn't saw right posts as you wanted within the thread before you posted that lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)