Playerid Problem
#1

Hello, i have a Problem that i will that the Playerid is too screened, when a Guy type in the Chat, but when he type the normal Message come too without the Playerid, how can i remove the normal Message without the playerid?

Here are picture:



The Code from OnPlayerText:

Код:
 new stringbig[356];

			format(stringbig,sizeof(stringbig),"(%d): %s",playerid, text);
	  		SendPlayerMessageToAll(playerid,stringbig);
	  		
	  		if(strfind(text, ":", true) != -1) {
	            new i_numcount, i_period, i_pos;
	            while(text[i_pos]) {
	                if('0' <= text[i_pos] <= '9') i_numcount ++;
	                else if(text[i_pos] == '.') i_period ++;
	                i_pos++;
	            }
	        }
Reply
#2

pawn Код:
new stringbig[128]; // Limit = 128

    format(stringbig,sizeof(stringbig),"(%d): %s",playerid, text);
    SendPlayerMessageToAll(playerid,stringbig);

    // At the end of the callback
    return 0; // for the custom chat
}
Reply
#3

return 0; at all OnPlayerText callback's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)