Onplayertext problem!
#6

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
This probably means that the variable IsMask[playerid] does not equal to one, which is the condition you have placed upon the execution of the code.

To check if this is the error, you could debug by placing

Код:
IsMask[playerid] = 1;
above your for loop, if that then works; you would place that piece of code wherever the relevant place is for the mask to be activated.
Well,i believe the IsMask[playerid] = 1; is activated good on the command mask because it works on other situtations
Example:

Код:
if(IsMask[playerid] == 1)
	{
 			    format(string, sizeof(string), "%s Stranger says: %s", accent, text);
				ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
				SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
     			return 0;
			}
		    format(string, sizeof(string), "%s %s says: %s", accent, sendername, text);
			ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
			SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
This code works just fine
Reply


Messages In This Thread
Onplayertext problem! - by daghost111 - 02.03.2017, 19:06
Re: Onplayertext problem! - by LetsOWN[PL] - 02.03.2017, 21:11
Re: Onplayertext problem! - by Toroi - 02.03.2017, 22:11
Re: Onplayertext problem! - by daghost111 - 12.03.2017, 15:57
Re: Onplayertext problem! - by LEOTorres - 12.03.2017, 16:09
Re: Onplayertext problem! - by daghost111 - 12.03.2017, 16:26
Re: Onplayertext problem! - by LEOTorres - 12.03.2017, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)