Question: Do you guys got random bugs aswell?
#1

So my question is, do you guys get random SAMP bugs aswell?
I mean, script bugs. Just like I created a script, I added something to the script, an if statement.. I noticed it didnt work, so I removed the if statement. Now I retested the script, it suddenly didn't work anymore. I reset the code to an 10 minutes ago when I had no if statement by pressing CTRL+Z. Now it was EXACTLY the same and correct code as before when it worked. So I tested it, and it didn't work again.

So my question is: Do you guys also experience those weird random bugs? I get them all the time I create something, I screw it up, reset it to normal state when it worked.
Reply
#2

Bugs aren't random. Computers only do what you tell them to. But yeah I have often done practically nothing to a script and gotten an error or two or it doesn't work Ingame.
Reply
#3

The most annoying thing is. I worked on it for 4 hours and it worked fine. Now it's EXACTLY the same code like it was, and it doesn't work at all. 4 hours work gone. I've had this with a gamemode I made earlier aswell.
Reply
#4

It doesn't work that way. The script you ran when it was working is not the same as your script when it's not. There might have been some data corruption, although it is more probable that you've just changed something and forgotten about it.
Reply
#5

If you post a snippet maybe someone can point out the bug.

I've had strange bugs before like this from overflowing an array.
Reply
#6

Maybe you should start using SVN or something (I should do so too). If I'm not mistaken it makes an automatic backup every time something's changed.
Reply
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
Maybe you should start using SVN or something (I should do so too). If I'm not mistaken it makes an automatic backup every time something's changed.
Do you mean Tortoise SVN? I am not sure if it makes backups, I should check it out.

Edit: I just had it again, lol.
Code before I made changes:
pawn Код:
GetVehicleHealth(i, VehHPa[i]);
        if(VehHPa[i] < VehHP[i])
        {
            print("Yeeha!");
        }
It worked..
I made a change:
pawn Код:
GetVehicleHealth(i, VehHPa[i]);
if(VehHPa[i] < VehHP[i])
{
    if(VehHP[i] != 1000)
    {
        print("Yeeha!");
    }
}
Didn't work, so I changed it back.
Code now:
pawn Код:
GetVehicleHealth(i, VehHPa[i]);
        if(VehHPa[i] < VehHP[i])
        {
            print("Yeeha!");
        }
it doens't work anymore. It only prints it when there are like 10+ cars spawning above "i"..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)