28.11.2010, 07:50
(
Последний раз редактировалось Typhome; 29.11.2010 в 18:07.
)
asdasdasdasd
public OnPlayerConnect(playerid)
{
Raha2[playerid] = TextDrawCreate(498.000000, 79.000000, "00000000.-");
TextDrawBackgroundColor(Raha2[playerid], 255);
TextDrawFont(Raha2[playerid], 1);
TextDrawLetterSize(Raha2[playerid], 0.490000, 2.499999);
TextDrawColor(Raha2[playerid], -1);
TextDrawSetOutline(Raha2[playerid], 0);
TextDrawSetProportional(Raha2[playerid], 1);
TextDrawSetShadow(Raha2[playerid], 1);
TextDrawUseBox(Raha2[playerid], 1);
TextDrawBoxColor(Raha2[playerid], 255);
TextDrawTextSize(Raha2[playerid], 610.000000, -4.000000);
}
switch(money)
{
case 10: // code
case 100: // code
case 1000: //code
}
format(string, sizeof(string), "0000000%d.-",money);
format(string, sizeof(string), "%d.-",GetPlayerMoney(playerid));//you could also use your pCash variable i guess but i'd use this personally.