01.03.2013, 05:50
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
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;