Strange
#1

pawn Код:
format(string,sizeof(string),"$%d",gPLAYER_POCKET_MONEY[playerid]);
SendClientMessage(playerid,COLOUR_ORANGE,string);
SetPlayerMoney(playerid,gPLAYER_POCKET_MONEY[playerid]);
Hey, I've got this problem.
I don't understand why this desn't show the same number.

but this does :
pawn Код:
format(string,sizeof(string),"$%d",gPLAYER_POCKET_MONEY[playerid]);
SendClientMessage(playerid,COLOUR_ORANGE,string);
SetPlayerMoney(playerid,gPLAYER_POCKET_MONEY[playerid]+100);
There is nothing between this lines. If anyone has an answer?
Thanks in advance.
Reply
#2

This SetPlayerMoney function is a bit bugged. I have fixed the problem by setting the function on OnPlayerUpdate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)