Help with GetPlayerMoney.
#6

pawn Код:
if (strcmp("/mymoney", cmdtext, true, 8) == 0)
    {
        new string[128]; //creates the string to set the message for the player
        new money; //creates the var for the player's money
        money = GetPlayerMoney(playerid); //sets money as the player's current money
        format(string, sizeof(string), "You currently have $%d", money); //sets the message for the player
        SendClientMessage(playerid, -1, string); //sends the message
        return 1;
    }
You could use something as simple as this. If that's what you meant.
Reply


Messages In This Thread
Help with GetPlayerMoney. - by TaLhA XIV - 25.07.2012, 19:01
Re: Help with GetPlayerMoney. - by [IKS]Niko_Hs™ - 25.07.2012, 19:04
Re: Help with GetPlayerMoney. - by TaLhA XIV - 25.07.2012, 19:06
Re: Help with GetPlayerMoney. - by [IKS]Niko_Hs™ - 25.07.2012, 19:22
Re: Help with GetPlayerMoney. - by TaLhA XIV - 25.07.2012, 19:22
Re: Help with GetPlayerMoney. - by CentyPoo - 25.07.2012, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)