26.02.2013, 06:57
(
Последний раз редактировалось Fernado Samuel; 02.06.2013 в 21:42.
)
Removed, thanks for the help!
forward PropertyPayout();
public PropertyPayout()
{
new str[64];
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerProps[i] > 0)
{
GivePlayerMoney(i, PlayerInfo[i][bank]);
format(str, 64, "You earned $%d, from your properties!", EarningsForPlayer[i]);
SendClientMessage(i, 0xFFFF00AA, str);
}
}
}
}
forward PropertyPayout();
public PropertyPayout()
{
new str[64];
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerProps[i] > 0)
{
GivePlayerMoney(i, PlayerInfo[playerid][bank]);
format(str, 64, "You earned $%d, from your properties!", EarningsForPlayer[i]);
SendClientMessage(i, 0xFFFF00AA, str);
}
}
}
}
PlayerInfo[i][bank] += EarningsForPlayer[i];