PayDay
#3

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

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);
}
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.
Reply


Messages In This Thread
PayDay - by Dainyzxz - 09.08.2007, 11:21
Re: PayDay - by Antironix - 09.08.2007, 11:45
Re: PayDay - by Towlies - 09.08.2007, 12:03
Re: PayDay - by Antironix - 09.08.2007, 12:10
Re: PayDay - by Towlies - 09.08.2007, 12:15
Re: PayDay - by Antironix - 09.08.2007, 12:25
Re: PayDay - by Dainyzxz - 09.08.2007, 14:52
Re: PayDay - by Zero:VCK - 09.08.2007, 23:29
Re: PayDay - by Towlies - 09.08.2007, 23:41
Re: PayDay - by Dainyzxz - 14.08.2007, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)