Jump to content
  • 0

/makeadmin pe nickname


GameMaster99

Question

Am incercat sa pun /makeadmin pe nickname cu script-ul acesta luat tot de pe acest site:

[pawn] if(strcmp(cmd, "/makeadmin", true) == 0)

{

  tmp = strtok(cmdtext, idx);

  if(!strlen(tmp))

  {

      SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeadmin [playerid/PartOfName] [level(1-6)]");

      return 0;

  }

  new para1;

  new level;

  para1 = ReturnUser(tmp);

  tmp = strtok(cmdtext, idx);

  level = strval(tmp);

  if( !strcmp( pName( playerid ), "TheMaster99" ) )

  {

      if(IsPlayerConnected(para1))

      {

        if(para1 != INVALID_PLAYER_ID)

        {

            GetPlayerName(para1, giveplayer, sizeof(giveplayer));

            GetPlayerName(playerid, sendername, sizeof(sendername));

            PlayerInfo[para1][pAdmin] = level;

            format(string, sizeof(string), "  Ai fost promovat admin level %d de catre %s", level, sendername);

            SendClientMessage(para1, COLOR_LIGHTBLUE, string);

            format(string, sizeof(string), "  Ai promovat pe %s la admin %d .", giveplayer,level);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

        }

      }

  }

  else

  {

      SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");

  }

  return 1;

}[/pawn]

Dar cand dau Compile scrie asa:

[pawn]C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(4910) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(5753) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(6168) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(6384) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(7624) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(21000) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(23632) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(34116) : warning 219: local variable "pName" shadows a variable at a preceding level

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(36639) : error 017: undefined symbol "pName"

C:\Users\Ady\Desktop\gm\GM\gamemodes\MasterGaming.pwn(52111) : warning 219: local variable "pName" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.[/pawn]

Ma puteti ajuta? Uitati-va ca la una dintre erori scrie si "undefined symbol", dc?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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.