Need little help
#4

OR
Код:
if(strcmp(cmd, "/showmarks", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SCM(playerid, COLOR_GRAD1, "USAGE: /showmarks [playerid/PartOfName]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    new amount;
                    amount = strval(tmp);
                    PlayerInfo[giveplayerid][pMarks] = amount;
                    GetPlayerName(playerid, numewarning, sizeof(numewarning));
                    format(string, sizeof(string), "This Player Has %d Roleplay mark(s).",amount);
                    ABroadCast(COLOR_LIGHTRED,string, 5);
                }//not valid id
            }//not connected
        }
        return 1;
    }
Reply


Messages In This Thread
Need little help - by IceBilizard - 28.10.2012, 14:55
Re: Need little help - by zyghy - 28.10.2012, 15:02
Re: Need little help - by IceBilizard - 28.10.2012, 15:08
Re: Need little help - by zyghy - 28.10.2012, 15:08
Re: Need little help - by IceBilizard - 28.10.2012, 15:13
Re: Need little help - by zyghy - 28.10.2012, 15:22
Re: Need little help - by IceBilizard - 28.10.2012, 15:34
Re: Need little help - by zyghy - 28.10.2012, 15:36
Re: Need little help - by IceBilizard - 28.10.2012, 19:11
Re: Need little help - by IceBilizard - 29.10.2012, 07:27

Forum Jump:


Users browsing this thread: 1 Guest(s)