12.03.2017, 16:26
Quote:
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; |
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);