commands not works :(
#11

pawn Code:
CMD:pay(playerid, params[])
{
    new pID, Amount, string[256], string1[256], transmitter[MAX_PLAYER_NAME], receivers[MAX_PLAYER_NAME];
    if(sscanf(params, "ud", pID, Amount)) return SendClientMessage(playerid, COLOR_WHITE, "[CMD]:/pay [PlayerID] [Amount]");
    if(pID == INVALID_PLAYER_ID) SendClientMessage(playerid, red, "[ERROR]:Player not Found or Connected!");
    else
    {
        GetPlayerName(playerid, transmitter, sizeof(transmitter));
        GetPlayerName(pID, receivers, sizeof(receivers));
        format(string, sizeof(string), "* [CMD]: %s has pay you $%d *", transmitter, Amount);
        SendClientMessage(pID, COLOR_WHITE, string);
        format(string1, sizeof(string1), "* [CMD]: You have pay $%d to %s ", Amount, receivers);
        SendClientMessage(playerid, COLOR_WHITE, string1);
        GivePlayerMoney(pID, Amount);
    }
    return 1;
}
for ZCMD .
Reply


Messages In This Thread
sscanf and zcmd (akill command) [REP ++] - by SamiHam - 12.07.2012, 14:47
Re: commands not works :( - by UnknownGamer - 12.07.2012, 15:49
Re: commands not works :( - by SamiHam - 12.07.2012, 16:00
Re: commands not works :( - by SamiHam - 13.07.2012, 06:43
Re: commands not works :( - by Kaperstone - 13.07.2012, 07:41
Re: commands not works :( - by SamiHam - 13.07.2012, 08:25
Re: commands not works :( - by Pro_Scriptor - 13.07.2012, 09:00
Re: commands not works :( - by clarencecuzz - 13.07.2012, 09:55
Re: commands not works :( - by SamiHam - 13.07.2012, 09:58
Re: commands not works :( - by Devilxz97 - 13.07.2012, 11:21
Re: commands not works :( - by Devilxz97 - 13.07.2012, 11:59
Re: commands not works :( - by SamiHam - 13.07.2012, 12:05
Re: commands not works :( - by Devilxz97 - 13.07.2012, 12:16
Re: commands not works :( - by Devilxz97 - 13.07.2012, 12:39
Re: commands not works :( - by SamiHam - 13.07.2012, 12:52
Re: commands not works :( - by Devilxz97 - 13.07.2012, 12:58
Re: commands not works :( - by SamiHam - 13.07.2012, 13:01
Re: commands not works :( - by Devilxz97 - 13.07.2012, 13:12
Re: commands not works :( - by Devilxz97 - 13.07.2012, 13:58
Re: commands not works :( - by Andi_Evandy - 13.07.2012, 14:06

Forum Jump:


Users browsing this thread: 2 Guest(s)