How to fix this :(
#10

pawn Код:
if(strcmp(cmd, "/ulecz". true) == 0)
{
      if(IsPlayerConnected(playerid))
      {
          if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2)
          {
              giveplayerid = ReturnUser(tmp);
              SetPlayerHealth(playerid, 100);
              format(string, sizeof(string), "*Uzdrowiłeś gracza %s.", giveplayerid);
              SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
              format(string, sizeof(string), "* Zostałeś uzdrowiony przez medyka %s.", playerid);
              SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
              PlayerPlaySound(giveplayerid, 1150, 0.0, 0.0, 0.0);
          }
         else
         {
             SendClientMessage(playerid, COLOR_RED, "Nie jesteś medykiem !");
         }
      }
      return 1;
}
Forgot closure statement, using else condition on a function, too many unintended brackets, wrong indentation.
But then again, sa-mp forums are shit when it comes to indenting
Reply


Messages In This Thread
How to fix this :( - by sekol - 01.05.2010, 16:19
Re: How to fix this :( - by aircombat - 01.05.2010, 16:23
Re: How to fix this :( - by maij - 01.05.2010, 16:24
Re: How to fix this :( - by sekol - 01.05.2010, 16:33
Re: How to fix this :( - by aircombat - 01.05.2010, 16:33
Re: How to fix this :( - by sekol - 01.05.2010, 16:42
Re: How to fix this :( - by [DRD]Rodney - 01.05.2010, 16:48
Re: How to fix this :( - by sekol - 01.05.2010, 16:57
Re: How to fix this :( - by aircombat - 01.05.2010, 17:41
Re: How to fix this :( - by maij - 01.05.2010, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)