Mask System - Showing both texts.
#1


It shows both the messages , masked and unmasked, when I type.

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

    new string[256], pname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pname, sizeof(pname));
     if(pMask[playerid] == 1)
     {
          format(string, sizeof(string), "Stranger_%d says: %s", PlayerInfo[playerid][MaskID], text);
          ProxDetector(30.0, playerid,string,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
     }
Reply
#2

PHP код:
public OnPlayerText(playeridtext[])
{
    
    
//TheMask
    
new string[256], pname[MAX_PLAYER_NAME];
     
GetPlayerName(playeridpnamesizeof(pname));
     if(
pMask[playerid] == 1)
     {
          
format(stringsizeof(string), "Stranger_%d says: %s"PlayerInfo[playerid][MaskID], text);
          
ProxDetector(30.0playerid,string,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
          return 
0;

Reply
#3

Quote:
Originally Posted by Mic_H
Посмотреть сообщение
PHP код:
public OnPlayerText(playeridtext[])
{
    
    
//TheMask
    
new string[256], pname[MAX_PLAYER_NAME];
     
GetPlayerName(playeridpnamesizeof(pname));
     if(
pMask[playerid] == 1)
     {
          
format(stringsizeof(string), "Stranger_%d says: %s"PlayerInfo[playerid][MaskID], text);
          
ProxDetector(30.0playerid,string,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
          return 
0;

How could I be such an idiot for not noticing that, thank you +1
Reply
#4

Human error.. Happens.. Have a good day..
Merry Christmas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)