• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] i have a error
#6
Your code is all messed up, we barely know what do you want.

Try this:

Code:
CMD:gl(playerid, params[])

{

? ? static

? ? ? ? Text[132],

? ? ? ? string[128],

? ? ? ? PlayerName[MAX_PLAYER_NAME];



? ? if(!sscanf(params, "s[132]", Text)) return SendClientMessage(playerid, -1, "{D41818}[COMANDO]{AFAFAF} /gl <texto>");

? ? else

? ? {

? ? ? ? if (Gl_Privados[playerid] == 1) return SendClientMessage(playerid, -1, "{D41818}[ERROR]{AFAFAF} you have blocked the /gl");

? ? ? ? GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); // storing player name first in the PlayerName variable

? ? ? ? foreach(new i : Player)

? ? ? ? {

? ? ? ? ? ? if (Gl_Privados[i] == 0)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? format(string, sizeof(string), "{D41818}[ID:%d - %s]:{AFAFAF} %s",playerid, PlayerName, Text);

? ? ? ? ? ? ? ? SendClientMessage(i, 0xFFFFFF00, string);

? ? ? ? ? ? }

? ? ? ? }

? ? }

? ? return 1;

}
daddy. /?daddyDOT





?

[Image: image.png]

  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: