Jump to content

Question

Posted

Am si eu o problema la dini_intset am mai auzit pe undeva de ea , dar nu gasesc rezolvarea , dupa dini_intset nu mai functioneaza parola , nu o modifica , nimic.

Dar nu mai functioneaza.

   if (strcmp(cmd, "/unban", true)==0)
   {
      if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1337)
      {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, 0xA8A8FFFF, "USAGE: /unban [PlayerName]");
            return 1;
         }
         format(string,sizeof(string),"%s.ini",tmp);
         if(fexist(string))
         {
             new valoare = 0;
             dini_IntSet(string, "Ban", valoare);
             GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
             GetPlayerName(playerid, sendername, sizeof(sendername));
             format(string, 256, "AdmWarning: %s has unbanned %s", sendername,tmp);
             ABroadCast(COLOR_YELLOW,string,1);
             format(string, 256, "AdmWarning: %s has unbanned %s", sendername,tmp);
             printf(string);
         }
         else
         {
             SendClientMessage(playerid, 0xFFFFFFFF, "Numele nu exista");
         }
      }
      return 1;
   }

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • 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.