02.04.2013, 19:33
if player A using showcash cmd to see his money (textdraw is visible to him )and if player B press showcash
then in player A screen will show player B's money
how to fix it ?
new Text:invtextdraw2;
this is under gamemodeinit
on command text
then in player A screen will show player B's money
how to fix it ?
new Text:invtextdraw2;
this is under gamemodeinit
Код:
invtextdraw2 = TextDrawCreate(68.750000, TextDrawLetterSize(invtextdraw2, 0.234374 TextDrawAlignment(invtextdraw2, 1); TextDrawColor(invtextdraw2, -1); TextDrawSetShadow(invtextdraw2, 0); TextDrawSetOutline(invtextdraw2, 1); TextDrawBackgroundColor(invtextdraw2, 51) TextDrawFont(invtextdraw2, 1); TextDrawSetProportional(invtextdraw2, 1);
PHP код:
dcmd_showcash(playerid,pa
{
#pragma unused params
new string[128];
format(string,sizeof(string),"~w~cash : ~g~%d $",GetPlayerMoney(playerid));
TextDrawShowForPlayer(playerid,invtextdraw2);
TextDrawSetString(invtextdraw2,string);