04.01.2014, 19:24
Tagmismatch warning with this please help!!! it been four days and still i cant figur out what problem its
pawn Код:
forward PayTime(playerid);
public PayTime(playerid)
{
for(new i=0; i <= MAX_PLAYERS; i++)
{
if ( IsPlayerConnected(i) )
{
new oldmoney = GetPlayerMoney(i);
new string[48];
SendClientMessage(i,0xFF9900AA,"Bank PayDAY");
SendClientMessage(i,0xFF9900AA,"You have earned 3500!");
format(string, sizeof(string), "$%i",oldmoney);
SendClientMessage(playerid, 0xFFFFFFAA, string);
GivePlayerMoney(i,3500);
new pay = GetPlayerMoney(i);
if (oldmoney > 10000)
{
new string2[48];
new tssece;
new interestpay;
tssece = oldmoney * 5.9 / 100;
interestpay = tssece + oldmoney;
format(string2, sizeof(string2), "Interest:$%i",interestpay);
SendClientMessage(playerid, 0xFFFFFFAA, string2);
GivePlayerMoney(i,interestpay);
}
new cash3 = GetPlayerMoney(i);
new string3[48];
format(string3, sizeof(string3), "$%i",cash3);
SendClientMessage(playerid, 0xFFFFFFAA, string3);
SendClientMessage(i,0xFF9900AA,"Bank PayDAY");
new string4[48];
new preekset;
new gstpay;
preekset = pay / 100 * 12.5;
gstpay = preekset - oldmoney;
format(string4, sizeof(string4), "GST: $%i",gstpay);
SendClientMessage(playerid, 0xFFFFFFAA, string4);
GivePlayerMoney(i,-gstpay);
}
}
return 1;
}