Need little help
#10

Ok thanks for help now finally i create correct code

pawn Код:
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)
                {
                    if (PlayerInfo[playerid][pMarks] >= 1)
                    {
                        GetPlayerName(playerid, numewarning, sizeof(numewarning));
                        format(string, sizeof(string), "This Player have %d Roleplay mark(s).", PlayerInfo[playerid][pMarks]);
                        ABroadCast(COLOR_LIGHTRED,string, 5);
                    }
                    else
                    {
                        SCM(playerid, COLOR_RED, "   You Didn't have rp marks!");
                    }
                    format(string, sizeof(string), "You showed you'r RolePlay Marks to %s",numewarning);
                    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)