Hey there, here's my issue. I'm having some issues using makescreenshot2(). I'm attempting to create a screenshot of a selected size made by the player dragging their mouse in the level. I've got the selecting thing finished, but the makescreenshot2 function isn't behaving as I'd like it to!
Here's the code I'm using.
PHP Code:
//#CLIENTSIDE
function onMouseDown() {
this.opx = int(mousex);
this.opy = int(mousey);
}
Well, first of all, you're calling calculateImage() when the function is named CalculateImage(), which in it's own is an error.
You also seem to be using level values rather than screen relative values, which might be the issue - I don't remember how the screenshot commands work exactly.
Well, first of all, you're calling calculateImage() when the function is named CalculateImage(), which in it's own is an error.
You also seem to be using level values rather than screen relative values, which might be the issue - I don't remember how the screenshot commands work exactly.
calculateImage and CalculateImage will work either way.
The second point sounds like it might fix it thanks for the tip, I'll try it out.
If I was releasing this code to the community (which I'm not) then I would correctly fix it up and what not. I'm only trying to test something out so a lowercase letter doesn't really have to cause so much hassle.
If I was releasing this code to the community (which I'm not) then I would correctly fix it up and what not. I'm only trying to test something out so a lowercase letter doesn't really have to cause so much hassle.
With that attitude you'll soon learn how we'll suddenly stop responding to your threads in these parts of the forums.
With that attitude you'll soon learn how we'll suddenly stop responding to your threads in these parts of the forums.
Although I have no business in this section whatsoever, I think you're not being any better with that response, but I do agree with you, don't get me wrong.
Emera, Try a "thank you".
Ziro, You gave your advice on the matter, simply tip your hat and bow out with the class you entered with.
Although I have no business in this section whatsoever, I think you're not being any better with that response, but I do agree with you, don't get me wrong.
Emera, Try a "thank you".
Ziro, You gave your advice on the matter, simply tip your hat and bow out with the class you entered with.
I was just being brutally honest, far too often people come here and ask questions with scripts without ever wanting to learn. I think I speak for the majority of us when I say that we don't mind giving advice or helping with minor codesnippets, as long as it's actually helpful. In this particular case of Emera, he was told what he doing was wrong and brushed it off like it didn't matter, so of course I will comment on it.
I was just being brutally honest, far too often people come here and ask questions with scripts without ever wanting to learn. I think I speak for the majority of us when I say that we don't mind giving advice or helping with minor codesnippets, as long as it's actually helpful. In this particular case of Emera, he was told what he doing was wrong and brushed it off like it didn't matter, so of course I will comment on it.
I was just being brutally honest, far too often people come here and ask questions with scripts without ever wanting to learn. I think I speak for the majority of us when I say that we don't mind giving advice or helping with minor codesnippets, as long as it's actually helpful. In this particular case of Emera, he was told what he doing was wrong and brushed it off like it didn't matter, so of course I will comment on it.
A lot of people have had that attitude lately in these forums. Some of them even get mad at the person helping them because what they've said is not directly related to their problem.
I'm not putting Emera in this category, just saying that it's very annoying as a scripter to see people using the forum for quick fixes for their server and not to learn.