ID 0 Bugs; SERVER: Unknown Command
#21

Nothing caught my eye except that you don't include ID 0 in drugtimer: (unless its 0 by default... )

(new i; i<MAX_PLAYERS;i++)


I'm not sure why setvehicleparameters or destroying pickups would create the bug you described. But then again I don't know what the UsedDrugs toggle does elsewhere in your script. This is a heck of a thing to troubleshoot so I don't blame you for being stumped. Or being pissed at these thread hijackers


- Frank
Reply
#22

Quote:
Originally Posted by Damon_Black
you don't include ID 0 in drugtimer
Good eye, thanks for this. It didn't fix these bugs, but I've changed it in the interest of code correctness and readability.
Reply
#23

@Samgreen:

Sorry if you thought I was hijacking the thread but this wasn't the case. If you look back at my original replies then you will see I was suggesting a possible cause for the sync issue (conflicting timer intervals, we are working in a single thread) and I was correcting Moes statement about all public type functions requiring a return, this is incorrect. If he had taken the time to read the information available to him then he would understand that a timer is not sending any data to another function, it has no argument/value to return so putting a return within the code is a simple waste of time.

By the way all variables are initially given the default value (0) when created so "new i" and "new i = 0" are exactly the same.

@Moe:

If you are just here to condescend and to be rude then please go away, you don't help giving false information.
Reply
#24

Now that you're returning a value is the script bugging on its own after awhile? Do you still get Unknown command?



As for the ID 0 bug, that most likely has to do with destroying the pickup/setting player weather/unlocking all cars. Try to add a IsPlayerConnected(i) right after your loop that should solve your problem.

Donny: I'm here to fix his bugs which so far, NONE of you have done. You're the one attacking my knowledge and scripts. Fact is I been scripting pawno more and for longer than anyone in this topic, and my 'false information' as you put it comes with years of debugging a language made for a very buggy, unstable mod. You may not understand how or why something works or doesn't work, that doesn't mean its incorrect. Not to mention that I've spent time on much more than some obscure debug script to make movies

There isn't a bug in this topic I haven't had and fixed before
Reply
#25

Quote:
Originally Posted by [M2S
moe ]Fact is I been scripting pawno more and for longer than anyone in this topic.
Offtopic
Thats just a speculation nothing more, exactly you know nothing about us.
Offtopic
Reply
#26

I recall having bugs like this when I had a variable that was too small. Ex:
Код:
new blah[100]; for(new i; i < 200; i++) blah[i] = 1;
It's just an idea.. I would check all of my variables and make sure they are the correct size.
Reply
#27

Quote:
Originally Posted by 90NINE
I recall having bugs like this when I had a variable that was too small. Ex:
Код:
new blah[100]; for(new i; i < 200; i++) blah[i] = 1;
It's just an idea.. I would check all of my variables and make sure they are the correct size.
A perfect example of the utility to use predefined constants.
Reply
#28

Seriously Moe just give over dude, I'm no longer interested in anything you have to say.

@Samgreen:

Please read THIS thread, it may help with your issue.
Reply
#29

Update on the godmode bug: We've discovered that this bug is not exclusive to ID 0. Quite often people that are any ID will either not take damage, will not be able to damage certain players, or both. It seems to be totally random - we've been trying to take notes of the circumstances, but there is no discernible pattern.

An ID 0 error could still be the problem, though it's not the only player that is affected. Any more advice is very much appreciated!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)