19.02.2009, 10:58
I've also had a problem with this... but found a way to avoid errors.
Top of the script:
OnPlayerConnect:
Put this in your timer before if(clientcash > servercash[playerid]):
Function:
And finally insert these to your Money funcs:
З.Ы. русские захватят весь мир))
Top of the script:
pawn Код:
forward MoneyGiving(playerid, status);
new givingmoney[MAX_PLAYERS];
pawn Код:
givingmoney[playerid] = 0;
pawn Код:
if(givingmoney[i]) return;
pawn Код:
public MoneyGiving(playerid, status)
{
givingmoney[playerid] = status;
}
pawn Код:
givingmoney[playerid] = 1;
SetTimerEx("MoneyGiving", 1500, 0, "i,i", playerid, 0);

