Jump to content
  • 0

Problema la ad


ionutuidumanu

Question

Nu pot sa scot deloc ad am scris si false in loc de true

if(strcmp(cmd, "/ad", false) == 1)

  {

      new message[256];

      new playername[MAX_PLAYER_NAME];

      strmid(message, cmdtext, 3, strlen(cmdtext));

      GetPlayerName(playerid, playername, sizeof(playername));

      if(!strlen(message))

      {

      SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");

      }

      else

      {

        format(string, sizeof(string), "[Radio] %s |Message sent by %s (playerid:%d) pm me!||",message, playername, playerid);

        printf(string);

        SendClientMessageToAll(0xADFF2FAA, string);

        GivePlayerMoney(playerid,-2000);

      }

The Legend

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

if(strcmp(cmd, "/ad", false) == 1)
   {
      new message[256];
      new playername[MAX_PLAYER_NAME];
      strmid(message, cmdtext, 3, strlen(cmdtext));
      GetPlayerName(playerid, playername, sizeof(playername));
      if(!strlen(message))
      {
      SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");
      }
      else
      {
         format(string, sizeof(string), "[Radio] %s |Message sent by %s (playerid:%d) pm me!||",message, playername, playerid);
         printf(string);
         SendClientMessageToAll(0xADFF2FAA, string);
         GivePlayerMoney(playerid,-2000);
      }
daca vrei sa o ai in gm dar sa nu functioneze incearca asa:
[code]
/*if(strcmp(cmd, "/ad", false) == 1)
   {
      new message[256];
      new playername[MAX_PLAYER_NAME];
      strmid(message, cmdtext, 3, strlen(cmdtext));
      GetPlayerName(playerid, playername, sizeof(playername));
      if(!strlen(message))
      {
      SendClientMessage(playerid, 0xFF0606FF, "|| Use /ad [text] ||");
      }
      else
      {
         format(string, sizeof(string), "[Radio] %s |Message sent by %s (playerid:%d) pm me!||",message, playername, playerid);
         printf(string);
         SendClientMessageToAll(0xADFF2FAA, string);
         GivePlayerMoney(playerid,-2000);
      } */

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.