[Ajuda] SSCANF
#3

tutorial quer aprende zcmd e sscanf juntos?

[ame]http://www.youtube.com/watch?v=Ngr4OiNaRnE[/ame]

Supera esse seu comando nгo vai ter o funcionamento correto

pawn Код:
CMD:pagar(playerid, params[])
{
    new
        ID,Mo
    ;

    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);
        }
        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)