09.08.2007, 12:03
Alright there are many things wrong with this...For example you never use the cash param you simply give them 700 dollars. Also I don't see the point of setting timer for IsPlayerLogged.
Correct way to use it would be like this
The way to call it would be like this
PayDay(playerid,700);
That would give them 700 dollars or whatever amount you specify there and will display message and give money accordingly.
Correct way to use it would be like this
pawn Код:
public PayDay(playerid, cash)
{
new string[256];
format(string, sizeof(string),"~w~Pay~y~Day ~n~ ~n~ ~b~%d $",cash);
GameTextForPlayer(playerid,string, 1000, 1);
GivePlayerMoney(playerid,cash);
}
PayDay(playerid,700);
That would give them 700 dollars or whatever amount you specify there and will display message and give money accordingly.