SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/04/2016, 06:02 AM   #1
dhelz7
Little Clucker
 
Join Date: Jan 2016
Posts: 21
Reputation: 0
Default [HELP] SAMP problems (lagging)

Hello everyone!

Simply.
My friend has just created a new server (Indonesian server).
On the first gamemode, it was no problem. (without SQL)

We decided to change our gamemode. (with SQL)
But the problem is, we always got lag when we join our new gamemode, such as delay when chat, driving, shot fired, lag while running, and delay when we use some commands.

My friend has upgraded RAM, but nothing changed, we still got same problems.
We had to download newly plugins, and already replaced.
Still lag :P

Can someone tell me what is the problem?
Sorry for my bad English, thank you.
dhelz7 is offline   Reply With Quote
Old 30/04/2016, 06:20 AM   #2
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,248
Reputation: 525
Default Re: [HELP] SAMP problems (lagging)

So you've switched gamemodes entirely, and have a problem with the new gamemode... You should be chasing up support in its release thread then.

This section is for getting help with code that's giving a scripter issues.
Sew_Sumi is offline   Reply With Quote
Old 30/04/2016, 08:49 AM   #3
dhelz7
Little Clucker
 
Join Date: Jan 2016
Posts: 21
Reputation: 0
Default Re: [HELP] SAMP problems (lagging)

After we changed, we have upgraded our RAM. What's the problem then?


I don't know.
dhelz7 is offline   Reply With Quote
Old 30/04/2016, 08:55 AM   #4
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,831
Reputation: 114
Default Re: [HELP] SAMP problems (lagging)

Get another gamemode then?
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Old 30/04/2016, 09:04 AM   #5
Logic_
Banned
 
Join Date: Jun 2015
Posts: 1,513
Reputation: 305
Default Re: [HELP] SAMP problems (lagging)

Your gamemode must be having many timers and stuff, that must be causing the lag.
Logic_ is offline   Reply With Quote
Old 30/04/2016, 09:55 AM   #6
czerwony03
Big Clucker
 
czerwony03's Avatar
 
Join Date: Nov 2012
Location: Poland
Posts: 121
Reputation: 10
Default Re: [HELP] SAMP problems (lagging)

Bad implemented SQL or MySQL cause lags.
Rewrite it, and use MySQL R39 plugin with caching. It resolve most problems with lags.
__________________

Did I help You? Leave Rep+ ()! Thx!
czerwony03 is offline   Reply With Quote
Old 01/05/2016, 06:50 AM   #7
dhelz7
Little Clucker
 
Join Date: Jan 2016
Posts: 21
Reputation: 0
Default Re: [HELP] SAMP problems (lagging)

Quote:
Originally Posted by czerwony03 View Post
Bad implemented SQL or MySQL cause lags.
Rewrite it, and use MySQL R39 plugin with caching. It resolve most problems with lags.
I'll try it now. Thanks all for responds
dhelz7 is offline   Reply With Quote
Old 01/05/2016, 06:55 AM   #8
dhelz7
Little Clucker
 
Join Date: Jan 2016
Posts: 21
Reputation: 0
Default Re: [HELP] SAMP problems (lagging)

My friend said.
It was on 'OnPlayerUpdate', and made this server lag. Is that true?
dhelz7 is offline   Reply With Quote
Old 01/05/2016, 07:10 AM   #9
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,831
Reputation: 114
Default Re: [HELP] SAMP problems (lagging)

If there's a lot of code being executed in OnPlayerUpdate the server will definitely lag, make him put it into timers instead.
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Old 02/05/2016, 02:30 AM   #10
dhelz7
Little Clucker
 
Join Date: Jan 2016
Posts: 21
Reputation: 0
Default Re: [HELP] SAMP problems (lagging)

Quote:
Originally Posted by CalvinC View Post
If there's a lot of code being executed in OnPlayerUpdate the server will definitely lag, make him put it into timers instead.
Can you give me some example?
dhelz7 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
My SAMP is lagging. Partner Client Support 7 16/12/2012 09:26 PM
SAMP problems Kevinity Client Support 1 01/04/2012 05:48 PM
SAMP problems TheDanCan Client Support 2 23/10/2011 07:42 PM
SAMP lagging horribly after previously running perfectly dnlkk94 Client Support 2 07/06/2010 03:09 PM
Lagging problem on SaMp 0.3a Pinolo Client Support 0 26/12/2009 12:13 AM


All times are GMT. The time now is 06:56 AM.


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