SA-MP Forums Archive
[SOLVED]Rank Chat - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED]Rank Chat (/showthread.php?tid=117612)



[SOLVED]Rank Chat - Hijolion - 01.01.2010

Lock Please


Re: [UNSOLVED]Rank Chat - [HiC]TheKiller - 01.01.2010

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;
}



Re: [UNSOLVED]Rank Chat - Josh! - 01.01.2010

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;
}



Re: [UNSOLVED]Rank Chat - [HiC]TheKiller - 01.01.2010

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 .


Re: [UNSOLVED]Rank Chat - Calon - 01.01.2010

I'm pretty sure max. player names = 16.


Re: [UNSOLVED]Rank Chat - Josh! - 01.01.2010

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?


Re: [UNSOLVED]Rank Chat - [HiC]TheKiller - 01.01.2010

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)



Re: [UNSOLVED]Rank Chat - Hijolion - 01.01.2010

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


Re: [UNSOLVED]Rank Chat - Hijolion - 01.01.2010

Thanks Guys It Worked !


Re: [UNSOLVED]Rank Chat - Josh! - 01.01.2010

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?


Re: [UNSOLVED]Rank Chat - Hijolion - 01.01.2010

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


Re: [UNSOLVED]Rank Chat - KnooL - 01.01.2010

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.