Raised This Month: $51 Target: $400
 12% 

Solved Copy/paste a code snippet with different results.


Post New Thread Reply   
 
Thread Tools Display Modes
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 11-19-2016 , 07:40   Re: Copy/paste a code snippet with different results.
Reply With Quote #11

Quote:
Originally Posted by blaacky View Post
The code works for me. So something is conflicting with it.
do you just used the snipped or the drunk.sp?

Quote:
Originally Posted by blaacky View Post
You should start by disabling every other custom plugin and seeing it it still happens.
Quote:
Originally Posted by shanapu View Post
of cause I disabled all other (myjb) plugins and only used drunk and/or curse on a blank server.
different results.
Must be a part of my drunk.sp but I can't see it.
Quote:
Originally Posted by blaacky View Post
It might be the case that you have two plugins doing this at the same time and they are inverting each other. Like one does vel[1] = -vel[1] and then the other one does it again making it the same value it originally was.
Curse plugin works. Drunk plugins don't work. Same server. Same environment. The bug must be in the drunk.sp
__________________
coding & free software

Last edited by shanapu; 11-19-2016 at 07:41.
shanapu is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 11-19-2016 , 16:51   Re: Copy/paste a code snippet with different results.
Reply With Quote #12

Can't compile drunk.sp because I don't have any of these header files:
#include <colors>
#include <autoexecconfig>
#include <hosties>
#include <lastrequest>
#include <warden>
#include <smartjaildoors>
#include <mystocks>
#include <myjailbreak>

Last edited by blaacky; 11-19-2016 at 16:51.
blaacky is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 11-19-2016 , 20:38   Re: Copy/paste a code snippet with different results.
Reply With Quote #13

You might suffer from outdated includes?
https://github.com/alliedmodders/sou...6506aa192c951f
__________________
Peace-Maker is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 11-19-2016 , 22:36   Re: Copy/paste a code snippet with different results.
Reply With Quote #14

Quote:
Originally Posted by blaacky View Post
Can't compile drunk.sp because I don't have any of these header files:
#include <colors>
#include <autoexecconfig>
#include <hosties>
#include <lastrequest>
#include <warden>
#include <smartjaildoors>
#include <mystocks>
#include <myjailbreak>
sry forgot to link the repo with the includes.
Thanks for trying!

Quote:
Originally Posted by Peace-Maker View Post
You might suffer from outdated includes?
https://github.com/alliedmodders/sou...6506aa192c951f
that's it!
you saved me from the mad asylum!

Much Thanks!
__________________
coding & free software
shanapu is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 11-19-2016 , 23:01   Re: Copy/paste a code snippet with different results.
Reply With Quote #15

can't believe this commit is from 10 Jun...
__________________
coding & free software

Last edited by shanapu; 11-19-2016 at 23:47. Reason: typo
shanapu is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 08:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode