Money help please
#1

Hi

i trying make some dialog when player have X ammot of point so he can buy cash with that.
but that not giving the money, i made whole system with that " rewards " aka points, player car buy cars and more few things and rest works, just that money part not working,

Well this is the code of cash

pawn Код:
if(PlayerInfo[playerid][pRewards]<34) return SendClientError(playerid,"Not enough rewards");
                    {
                        new camorra[128];
                        new amount = 2500000;
                        PlayerInfo[playerid][pRewards] = PlayerInfo[playerid][pRewards]-35;
                        dini_IntSet(PlayerInfo[playerid],"rewards",PlayerInfo[playerid][pRewards]);
                        SendClientMessage(playerid, COLOR_WHITE,"-------------------------");
                        format(camorra, sizeof(camorra), "{e94a4a}[info:]{f1a3a4} You have received  {003300}%d $ ", amount);
                        SendClientMessage(playerid, COLOR_RED, camorra);
                        SendClientMessage(playerid, COLOR_WHITE,"-------------------------");
                        GivePlayerMoneyEx(playerid, 2500000);
                                    //GivePlayerMoneyEx(playerid, amount); also tryed with that
                    }
                    return 1;
Reply


Messages In This Thread
Money help please - by Camorra - 01.03.2013, 05:50
Re: Money help please - by [MG]Dimi - 01.03.2013, 07:37
Re: Money help please - by Denying - 01.03.2013, 12:03
Re: Money help please - by Camorra - 01.03.2013, 21:57

Forum Jump:


Users browsing this thread: 1 Guest(s)