Run out of ammo then freeze
#1

Everytime I run out of ammo it makes my game freezes. I don't know which exactly is causing this problem on my script? Anyone knows what is maybe causing this issue? Thank you.
Reply
#2

Have you considered Its gta sa and not your server? Reinstall samp
Reply
#3

As Jasperschell said, If you think this is a GTA bug, not the script caused that, you should reinstall your SAMP from another source,and try again, if the problem still there, just fix your script and try checking the issue out, and post a video or SSs here.
Reply
#4

It is the script itself. I would post a video or screenshot, but it causes my pc to freeze and in-need of restart just to bring it back up again. I'll try finding the solution myself or find why did this occur, if not, I'll call out for a help again. Thanks.
Reply
#5

How do you expect anyone to have any idea of what is happening if you don't post code?
Reply
#6

Do you manage the ammo from within the script itself?
Does the ammo go negative perhaps?

Add some print statements inside OnPlayerWeaponShot callback to track if ammo going negative could be a problem or just to determine what exactly happens when it reaches 0.

It could as well come stuck in an endless loop somehow, causing your server to crash or even make your computer crawl.
Reply
#7

Quote:
Originally Posted by Pottus
Посмотреть сообщение
How do you expect anyone to have any idea of what is happening if you don't post code?
I was asking for an idea, a clue. This problem surely occured before, and had been solved before. An idea is what I was asking, it's hard to explain but AmigaBlizzard gave an idea, and thats what I wanted. Since I told I have no idea cause the script compiles perfectly.

Quote:
Originally Posted by AmigaBlizzard
Посмотреть сообщение
Do you manage the ammo from within the script itself?
Does the ammo go negative perhaps?

Add some print statements inside OnPlayerWeaponShot callback to track if ammo going negative could be a problem or just to determine what exactly happens when it reaches 0.

It could as well come stuck in an endless loop somehow, causing your server to crash or even make your computer crawl.
Nope, checked it. I tried the server with friends, it works fine to them. But someone it don't work fine for my pc. It's not my pc, cause I've been using the server here all along and it worked fine. The gta sa is clean, redownloaded it. The samp has been re-installed brand new without existing settings from the previus installation. Idk what causes this freeze for me. I might need to try it on another pc, see if it works. Anyways, thanks. But if anyone else have a clue, please tell me, it'll be very appreciated. Thanks people.
Reply
#8

You running Vista? That fucks around with files something chronic. It'll make 'backups' that it presents to applications even when it's not there and deleted.

(And even if it's not Vista) It's fully going to be your install and you need to uninstall everything, clear out ALL settings and everything... Even re-install to a new folder as well.
Reply
#9

Windows 7. I did everything, but failed. It doesn't affect other players, it's just me. I guess I'll just not use weapon or not run out of ammo. Its on my pc problem itself probably.

P.S. This started when I removed some textdraws...but I re-instaleld every file, and still happens.

I guess I will just live up to it. Thanks anyways.
Reply
#10

Avoiding the issue, isn't the way.

You need to fix it, and if a clean install isn't doing that, then your PC has more issues than just this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)