Need Help with this admin cmd
#7

you just didnt close all the barrels.. :\
pawn Код:
if(strcmp(cmd, "/refund", true) == 0)
{//1 open
    if(IsPlayerConnected(playerid)) {//2 open
        if(PlayerInfo[playerid][pAdmin] < 4) {//3 open
            SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !");
            return 1;
        }//3 closed
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {//4 open
            SendClientMessage(playerid, COLOR_WHITE, "USAGE: /refund [playerid/PartOfName]");
            return 1;
        }//4 closed
        giveplayerid = ReturnUser(tmp);
        if(IsPlayerConnected(giveplayerid)) {//5 open
            if(giveplayerid != INVALID_PLAYER_ID) {//6 open
                GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                RefundingID[playerid] = giveplayerid;
                                                  //refund
                DisplayDialogForPlayer(playerid, 47);
            }//6 closed
        }//5 closed
    }//2 closed
}//1 closed


return 1;
}
Reply


Messages In This Thread
Need Help with this admin cmd - by Neo Karls - 26.08.2011, 00:58
Re: Need Help with this admin cmd - by Davz*|*Criss - 26.08.2011, 01:04
Re: Need Help with this admin cmd - by =WoR=G4M3Ov3r - 26.08.2011, 01:11
Re: Need Help with this admin cmd - by Neo Karls - 26.08.2011, 01:21
Re: Need Help with this admin cmd - by grand.Theft.Otto - 26.08.2011, 02:59
Re: Need Help with this admin cmd - by Neo Karls - 26.08.2011, 07:12
Re: Need Help with this admin cmd - by Kaperstone - 26.08.2011, 07:25

Forum Jump:


Users browsing this thread: 1 Guest(s)