Persze.
forward bankupdate(playerid);
public bankupdate(playerid)
{
new bankstring[40];
format(bankstring, sizeof(bankstring), \"%d\", formatnumber(Jatekosinfo[playerid][DepositedMoney]));
TextDrawSetString(Textdraw22,bankstring);
return 1;
}
Textdraw22 = TextDrawCreate(543.000000, 140.000000, \"0\");
public OnPlayerConnect(playerid)
{
SetTimerEx(\"bankupdate\",3500,true,\"i\",playerid);
return 1;
}
script legaljára:
stock formatnumber(amount, sep[] = \",\")
{
new
str[16],
negativ = 0;
if(amount < 0) negativ = 1;
format(str, sizeof(str), \"%i\", amount);
new
lenght = strlen(str);
while((lenght -= 3) > negativ) strins(str, sep, lenght);
return str;
}