Integrer error
#3

By the way, it looks like you're sending the cash to yourself and not the target
pawn Код:
CMD:givemoney(playerid, params[])
{
    new id, ammountcash, givemstring[128];
    if(sscanf(params, "ud", id, ammountcash)) return SendClientMessage(playerid, -1, "Use: /pay [Player] [Ammount]");
    PlayerInfo[id][Money] += ammountcash; // PlayerInfo[playerid][Money] += ammountcash;
    format(givemstring, 128, "You gave him $%d", ammountcash);
    SendClientMessage(playerid, -1, givemstring);
    return 1;
}
Reply


Messages In This Thread
Integrer error - by feartonyb - 27.11.2013, 21:09
Re: Integrer error - by Patrick - 27.11.2013, 21:12
Re: Integrer error - by Loot - 27.11.2013, 22:27
Re: Integrer error - by feartonyb - 27.11.2013, 22:46
Re: Integrer error - by Loot - 27.11.2013, 23:08
Re: Integrer error - by feartonyb - 28.11.2013, 14:50
Re: Integrer error - by feartonyb - 28.11.2013, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)