[Ajuda] SSCANF
#10

a desculpe mano mбs й facil intender

pawn Код:
# й igual a ""
pawn Код:
CMD:pagar(playerid, params[])
{
    new
        ID,
        Mo,
        sk[ 50 ]
    ;

    if(sscanf(params, "ud", ID, Mo)) return SendClientMessage(playerid, -1, "* Use: /Pagar [ID] [R$]");

    if(IsPlayerConnected(ID)){
        if(GetPlayerMoney(playerid) > Mo){
            GivePlayerMoney(ID, Mo);
            GivePlayerMoney(playerid, -Mo);
            format(sk, sizeof(sk), "Vocк pagou R$: %s Para o ID [%d]", Mo, ID);
            SendClientMessage(playerid, -1, sk);
        }
        else SendClientMessage(playerid, -1, "Vocк nгo possui todo este dinheiro");
    }
    else SendClientMessage(playerid, -1, "Jogador nгo conectado!");
    return 1;
}
Reply


Messages In This Thread
SSCANF - by Duun - 25.02.2013, 19:51
Re: SSCANF - by Supera - 25.02.2013, 19:56
Re: SSCANF - by Sky™ - 25.02.2013, 19:59
Re: SSCANF - by Supera - 25.02.2013, 20:04
Re: SSCANF - by Duun - 25.02.2013, 20:06
Re: SSCANF - by MegalodoN - 25.02.2013, 20:07
Re: SSCANF - by Supera - 25.02.2013, 20:08
Re: SSCANF - by Duun - 25.02.2013, 20:20
Re: SSCANF - by Schocc - 25.02.2013, 20:27
Re: SSCANF - by Sky™ - 25.02.2013, 20:36

Forum Jump:


Users browsing this thread: 1 Guest(s)