SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/12/2019, 03:31 PM   #21
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: Online time money

these are parts from the code, it's not like one whole
__________________

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

bump
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
Old 03/12/2019, 03:53 PM   #23
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 463
Reputation: 20
Default Re: Online time money

Quote:
Originally Posted by Mattski View Post
these are parts from the code, it's not like one whole
That's not what I asked. I was requesting some further snippets of the surrounding code to gain a better idea of what may be causing it. Also, please don't bump your posts after only a few minutes since your last post, it's not necessary.
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
An upcoming mix of trucking & light roleplay
Proxus is offline   Reply With Quote
Old 03/12/2019, 04:01 PM   #24
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: Online time money

i found the broblem, wrong bracket under "public CountOnlineTime()"

now there is just one error
PHP Code:
.pwn(260) : error 017undefined symbol "i" 
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
Old 03/12/2019, 04:17 PM   #25
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 463
Reputation: 20
Default Re: Online time money

Quote:
Originally Posted by Mattski View Post
i found the broblem, wrong bracket under "public CountOnlineTime()"

now there is just one error
PHP Code:
.pwn(260) : error 017undefined symbol "i" 
That would probably be because in your foreach code, you're using the m identifier instead of i. Change the i to an m.
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
An upcoming mix of trucking & light roleplay
Proxus is offline   Reply With Quote
Old 03/12/2019, 04:26 PM   #26
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: Online time money

still undefined
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
Old 03/12/2019, 04:31 PM   #27
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
still undefined
Show us lines around 260
Joe Staff is offline   Reply With Quote
Old 03/12/2019, 04:34 PM   #28
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
Show us lines around 260
PHP Code:
        PlayingMinutes[i] ++;
        if(
PlayingMinutes[i] == 30)
        {
            
SendClientMessage(iCOLOR_WHITE"{FFFFFF}[SERVER] {00CC33}30 Min playing time bonus $25000");
            
GivePlayerMoney(i25000);
            
PlayingMinutes[i] = 0;
        }
    }
}

public 
OnPlayerDisconnect(playeridreason)
{
    
PlayingMinutes[i] = 0;  //line260
    
new File[128]; 
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski is offline   Reply With Quote
Old 03/12/2019, 04:35 PM   #29
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:
        PlayingMinutes[i] ++;
        if(
PlayingMinutes[i] == 30)
        {
            
SendClientMessage(iCOLOR_WHITE"{FFFFFF}[SERVER] {00CC33}30 Min playing time bonus $25000");
            
GivePlayerMoney(i25000);
            
PlayingMinutes[i] = 0;
        }
    }
}

public 
OnPlayerDisconnect(playeridreason)
{
    
PlayingMinutes[i] = 0;  //line260
    
new File[128]; 

As stated earlier, because you changed the for variable to 'm', you have to set those used of 'i' to 'm'
Joe Staff is offline   Reply With Quote
Old 03/12/2019, 04:39 PM   #30
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
As stated earlier, because you changed the for variable to 'm', you have to set those used of 'i' to 'm'
PHP Code:
.pwn(260) : error 017undefined symbol "m" 
__________________

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:33 AM.


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