SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/12/2019, 05:45 PM   #31
Joe Staff
High-roller
 
Joe Staff's Avatar
 
Join Date: Aug 2007
Posts: 2,582
Reputation: 378
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.
__________________
Big bottom girls make this rockin' world go 'round.
Joe Staff is offline   Reply With Quote
Old 03/12/2019, 05:58 PM   #32
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 146
Reputation: 1
Default Re: Online time money

no errors gonna test it out right now, thanks to everyone who helped!
+REP after 24h
__________________
___________________________________________
LATVIA FREEROAM : Release 19.12.19
(first server creation)


MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is online now   Reply With Quote
Old 03/12/2019, 06:09 PM   #33
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 146
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
__________________
___________________________________________
LATVIA FREEROAM : Release 19.12.19
(first server creation)


MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is online now   Reply With Quote
Old 03/12/2019, 06:30 PM   #34
Joe Staff
High-roller
 
Joe Staff's Avatar
 
Join Date: Aug 2007
Posts: 2,582
Reputation: 378
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)
__________________
Big bottom girls make this rockin' world go 'round.
Joe Staff is offline   Reply With Quote
Old 03/12/2019, 06:35 PM   #35
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 146
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!
__________________
___________________________________________
LATVIA FREEROAM : Release 19.12.19
(first server creation)


MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is online now   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 11:46 AM
How can I get money online? SounDD Everything and Nothing 6 11/08/2013 02:03 AM
Some simple ways to earn money online! kanersps Everything and Nothing 3 24/02/2013 07:20 PM
[How To] Make Money Online Mikailcan Everything and Nothing 3 24/02/2013 02:38 PM
Suggest me How to make some money online Black_Death Everything and Nothing 23 18/09/2011 10:30 PM


All times are GMT. The time now is 10:27 AM.


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