Payday spamming.
#6

I dont think he needs a for loop, as his function is passing playerid into it for the PayDay. However, do look up on for loops, they are a vital part of logical coding in any language.

As for your timer, you're currently setting the interval to 560...that's 560 MILLISECONDS. Not seconds. Sounds to me, that by the time your player has properly connected and logged in, the payday function has already been executed for them.

I don't know how long you want the timer to be before each payday, but for example the following would execute your function every minute.

Код:
SetTimerEx("payday", 1000, true, "i", playerid);
For further information, see: https://sampwiki.blast.hk/wiki/SetTimerEx
Reply


Messages In This Thread
Payday spamming. - by canip0000 - 15.07.2016, 02:01
Re: Payday spamming. - by canip0000 - 15.07.2016, 02:04
Re: Payday spamming. - by WhiteGhost - 15.07.2016, 02:21
Re: Payday spamming. - by canip0000 - 15.07.2016, 02:36
Re: Payday spamming. - by WhiteGhost - 15.07.2016, 02:50
Re: Payday spamming. - by Jonesy96 - 15.07.2016, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)