SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/12/2019, 04:45 PM   #31
Joe Staff
High-roller
 
Join Date: Aug 2007
Posts: 2,593
Reputation: 379
Default Re: Online time money

Quote:
Originally Posted by Mattski View Post
PHP Code:
.pwn(260) : error 017undefined symbol "m" 
I see, I hadn't noticed where the error actually was. Under OnPlayerDisconnect, 'i' doesn't exist, but 'playerid' is what you're looking for there.
Joe Staff is offline   Reply With Quote
Old 03/12/2019, 04:58 PM   #32
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: Online time money

no errors gonna test it out right now, thanks to everyone who helped!
+REP after 24h
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
Old 03/12/2019, 05:09 PM   #33
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: Online time money

money should be given after 1 min, because:

PHP Code:
public OnFilterScriptInit()
{
    
SetTimer("CountOnlineTime"60000true); //1 minute
    
return 1;

right? if right, i waited already 3min, nothing happening
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
Old 03/12/2019, 05:30 PM   #34
Joe Staff
High-roller
 
Join Date: Aug 2007
Posts: 2,593
Reputation: 379
Default Re: Online time money

Quote:
Originally Posted by Mattski View Post
money should be given after 1 min, because:

PHP Code:
public OnFilterScriptInit()
{
    
SetTimer("CountOnlineTime"60000true); //1 minute
    
return 1;

right? if right, i waited already 3min, nothing happening
No, that timer is just an increment of 1 minute. If you want to adjust the rate of which your admins get paid, you have to change the amount here:

Code:
if(PlayingMinutes[i] == 30)
Joe Staff is offline   Reply With Quote
Old 03/12/2019, 05:35 PM   #35
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: Online time money

Quote:
Originally Posted by Joe Staff View Post
No, that timer is just an increment of 1 minute. If you want to adjust the rate of which your admins get paid, you have to change the amount here:

Code:
if(PlayingMinutes[i] == 30)
Okay, thanks!
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Earning money online on PayPal fast ? VIP475 Everything and Nothing 2 11/06/2014 10:46 AM
How can I get money online? SounDD Everything and Nothing 6 11/08/2013 01:03 AM
Some simple ways to earn money online! kanersps Everything and Nothing 3 24/02/2013 06:20 PM
[How To] Make Money Online Mikailcan Everything and Nothing 3 24/02/2013 01:38 PM
Suggest me How to make some money online Black_Death Everything and Nothing 23 18/09/2011 09:30 PM


All times are GMT. The time now is 04:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.