• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] i have a error
#5
You said, when u disabled gl, that's not work.
?In your code you can, if gl open text, else continue.



Code:
if (Gl_Privados[i] == 0)
{
? ?SendClientMessage(i, 0xFFFFFF00, string);
}

else if(Gl_Privados[i] == 1)? ? ? ??
{
? ? continue;
}


But at the end of your code,
Code:
/*
format(string, sizeof(string), "{D41818}[ID:%d - %s]:{AFAFAF} %s",playerid, PlayerName, Text);
SendClientMessageToAll(0xFFFFFF00, string);
*/

SendClientMessageToAll sending your "string" for everyone. Not looking for is user gl opened or closed.
You have already sending string message in foreach. Why again write it to all players?
  Reply


Messages In This Thread
i have a error - by Nicolas_Belic - 2021-02-20, 01:27 PM
RE: i have a error - by LinesinRows - 2021-02-20, 05:34 PM
RE: i have a error - by Nicolas_Belic - 2021-02-20, 07:37 PM
RE: i have a error - by destiezk - 2021-02-20, 08:53 PM
RE: i have a error - by LinesinRows - 2021-02-20, 08:55 PM
RE: i have a error - by daddy. - 2021-02-20, 08:59 PM
RE: i have a error - by Nicolas_Belic - 2021-02-20, 09:19 PM
RE: i have a error - by daddy. - 2021-02-20, 09:23 PM
RE: i have a error - by Nicolas_Belic - 2021-02-20, 09:32 PM
RE: i have a error - by daddy. - 2021-02-20, 10:21 PM
RE: i have a error - by Nicolas_Belic - 2021-02-21, 01:38 AM
RE: i have a error - by arber - 2021-02-20, 11:29 PM

Forum Jump: