Jump to content
  • 0

Problema Compilare


AlexVs

Question

Err0rs and Warnings

E:\Server SAMP\gamemodes\gf.pwn(2115) : warning 213: tag mismatch

E:\Server SAMP\gamemodes\gf.pwn(23939) : error 017: undefined symbol "AdminDuty"

E:\Server SAMP\gamemodes\gf.pwn(23939) : warning 215: expression has no effect

E:\Server SAMP\gamemodes\gf.pwn(23939) : error 001: expected token: ";", but found "]"

E:\Server SAMP\gamemodes\gf.pwn(23939) : error 029: invalid expression, assumed zero

E:\Server SAMP\gamemodes\gf.pwn(23939) : fatal error 107: too many error messages on one line

Linie 23939 :

[pawn]//===============================================================================================//

//---Comanda: /aod---//

//===============================================================================================//

if(strcmp(cmd, "/aod", true) == 0)

{

if (PlayerInfo[playerid][pAdmin] >= 1)

{

    if(AdminDuty[playerid] == 1)

    {

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

          format(string, sizeof(string), "[Admin Info] %s [iD:%d] is no longer on duty as an admin.", sendername,playerid);

                      SendClientMessageToAll(COLOR_DBLUE,string);

        AdminDuty[playerid] = 0;

      SetPlayerHealth(playerid,100);

      SetPlayerArmour(playerid,0);

      SetPlayerToTeamColor(playerid);

  }

    else

    {

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

    format(string, sizeof(string), "[Admin Info] %s [iD:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid);

SendClientMessageToAll(0xFAAFBEFF,string);

AdminDuty[playerid] = 1;

SetPlayerHealth(playerid,99999);

SetPlayerArmour(playerid,99999);

SetPlayerColor(playerid,0xFAAFBEFF);

for(new i = 0; i < MAX_PLAYERS; i ++)

      {

        if(IsPlayerConnected(i))

        {

      SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );

    }

      }

    }

}

else

{

SendClientMessage(playerid,COLOR_GREY,"Your not an admin !");

}

return 1;

}[/pawn]

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.