15.01.2016, 02:35
Hey guys I was just wondering what my mistake was.. I created a command that somehow gives the player random amount items as gifts and I want the player to know how much he got by sending him a sentence.
The one with the giftmoneygold works it says exactly how much it gives.
The one with the giftplankgold doesnt work. It gives the right random amount but the sentence just doesnt show up.
Here are the defines
Any help is highly appreciated !
The one with the giftmoneygold works it says exactly how much it gives.
The one with the giftplankgold doesnt work. It gives the right random amount but the sentence just doesnt show up.
Here are the defines
Код:
new string[128]; new giftmoneysilver = random(999) + 1;//silver vip gift new giftplankgold = random(1999) + 1;//gold vip gift new giftmoneygold = random(1999) + 1;//gold vip gift new giftmoneyplat = random(2999) + 1;//plat vip gift new giftplankplat = random(2999) + 1;//plat vip gift new giftmats = random(2999) + 1;//plat vip gift
Код:
GivePlayerMoney(playerid, giftmoneygold); format(string,sizeof string,"You opened the Gold VIP gift and found %d $", giftmoneygold); PlayerInfo[playerid][pPlanks] += giftplankgold; format(string,sizeof string,"You opened the Gold VIP gift and found %d planks", giftplankgold);