/devip issue.
#2

First off all, your code will not work at all, you're deactivating it regardless of the player being admin or not, and its not using sscanf properly.

Try something like this;
pawn Код:
CMD:devip(playerid,cmdtext[])
{
    if(GetAdminLevel(playerid) >= 4)
    {
      new player;
      if(sscanf(cmdtext,"u",player)) return SendClientMessage(playerid, -1, "/devip [player id / name]");
      SendClientMessage(playerid, COLOR_WHITE, "Deactivation successfull.");
      Deactivevip(player);
    }
    else return SendClientMessage(playerid, COLOR_WHITE, "You're not an admin.");
    return 1;
}
Try looking into some SSCANF usage guides and perhaps (better) identation will be a nice thing to learn at the get go too.
Reply


Messages In This Thread
/devip issue. - by Goldilox - 28.04.2013, 17:55
Re: /devip issue. - by Revo - 28.04.2013, 18:07
Re: /devip issue. - by Goldilox - 28.04.2013, 18:21
Re: /devip issue. - by Emmet_ - 28.04.2013, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)