[Request]Please
#5

this the code errors
Quote:

pInfo[lookupid][pRank] = ARank;

and this full code
PHP код:
CMD:setrank(playeridparams[])
{
    new 
str[128], ranklookupid;
    if(
PlayerInfo[playerid][pRank] == 6// this command is for admins level 6 only
    
{
        if(
sscanf(params"ui"lookupidrank)) return SendClientMessage(playerid, -1"Usage: /setrank <PlayerID/PlayerName> <Rank>");
        
format(strsizeof(str), "Admin %s (ID:%d) has setted %s (ID:%d) Rank to (%d)",GetName(playerid), playeridGetName(lookupid), lookupidrank);
        
SendClientMessageToAll(-1str);
        
pInfo[lookupid][pRank] = ARank;
    }
    else
    {
        
SendClientMessage(playerid, -1"Sorry , you are not admin");
    }
    return 
1;

Reply


Messages In This Thread
[Request]Please - by astanalol - 17.12.2014, 12:01
Re: [Request]Please - by JeaSon - 17.12.2014, 12:29
Re: [Request]Please - by astanalol - 17.12.2014, 13:02
Re: [Request]Please - by JeaSon - 17.12.2014, 13:11
Re: [Request]Please - by astanalol - 17.12.2014, 14:01
Re: [Request]Please - by astanalol - 17.12.2014, 15:10
Re: [Request]Please - by JeaSon - 17.12.2014, 16:32
Re: [Request]Please - by astanalol - 17.12.2014, 18:18
Re: [Request]Please - by JeaSon - 17.12.2014, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)