how do you get the queries and ticks?
#1

How can i get the ticks and queries from a server so i can display it on a textdraw?

https://imgur.com/HptoyHM
Reply
#2

Some scripting, a timer, and some thinking.
Reply
#3

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Some scripting, a timer, and some thinking.
are you actually kidding me?
i didn`t ask for a script and i`ll never will,i can build my own scripts.
i just asked for an idea how to do that because i dont know any function that returns the queries.
thanks for your answer thought.
waiting for others`s replies.

edit:found out about
PHP код:
GetServerTickRate() 
any informations about queries?
Reply
#4

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
are you actually kidding me?
i didn`t ask for a script and i`ll never will,i can build my own scripts.
i just asked for an idea how to do that because i dont know any function that returns the queries.
thanks for your answer thought.
waiting for others`s replies.
dont mind him, he loves acting like pro
Reply
#5

Quote:
Originally Posted by AlexMSK
Посмотреть сообщение
dont mind him, he loves acting like pro
Nice shitpost there... Off you go... Don't mind this guy, he's only mad about my posts.

OP I wouldn't be sure how the queries would be tracked. Seriously though, you hand up a screenshot, wanting help to copy someones server, in a 'how you do this' method as is stated in the rule forum thread, before long if any answers come in, you'd ask for 'examples'.
Reply
#6

Lmao, i really don't understand what this guy is trying to do, what's the query exactly? i know you can get everything he put there server-side even FPS function was provided by Emmet_ before and what's with the ticks as well? what does all of that really stand for?
Reply
#7

I'd suppose the 'Query' field would be so people could see if the server was being attacked or flooded so they could tell people in the game rather than having to alt-tab to find out.
Reply
#8

Well then this thread doesn't make any sense because if it stands for such a thing you can and must do it all server-side, for EX: flooding once too many players same ip connect you change textdraw to attacked and reset after 5 seconds then ban the flooders?
Reply
#9

It is indeed a timer. GetTickCount();
Reply
#10

Nothing to do with what I thought... It's why the rule is there.

I find it stupid that people come here with screenshots of other servers features, expecting something to simply be handed over, or tutorialized to suit. Happens every week or so.
Reply
#11

dude i didnt ask for something to be handed over ,why cant you understand that?

i just asked if there`s a function that returns the queries,thats all.
Reply
#12

In a very vague way...

Why are you so upset about my mentioning of what it does consist of?
Reply
#13

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
In a very vague way...

Why are you so upset about my mentioning of what it does consist of?
im not upset but your post was irrelevant and had no place in this topic.
thanks again and let`s stop the chat please,have a nice day buddy.
Reply
#14

Every time you do a query, increment some counter. Let some timer function read the value and update the textdraws text, then reset the counter. Repeat.

For someone who acts as if he knows a whole lot about scripting, you don't know a whole lot.
Reply
#15

Quote:
Originally Posted by Sithis
Посмотреть сообщение
Every time you do a query, increment some counter. Let some timer function read the value and update the textdraws text, then reset the counter. Repeat.

For someone who acts as if he knows a whole lot about scripting, you don't know a whole lot.
actually i know very little about scripting,but thanks a lot dude for your reply.
Reply
#16

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
im not upset but your post was irrelevant and had no place in this topic.
You THINK it was 'irrelevant' and 'had no place', but that's like, totally your opinion man.
Reply
#17

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
You THINK it was 'irrelevant' and 'had no place', but that's like, totally your opinion man.
no one likes you

GetServerTickRate() or https://sampwiki.blast.hk/wiki/GetTickCount
Reply
#18

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
You THINK it was 'irrelevant' and 'had no place', but that's like, totally your opinion man.
You are so annoying sew semi, would you please fuck off, you are the typical cunt that gives no helping hand at all, alright, you just had a ton of replies here for no actual reason just to shit post, so, that is typically a shit shit posting about shitty stuff you like where you bring your shitty shit in other people's shit, keep your shit in the shit can and get the shit out of here.
Reply
#19

Quote:
Originally Posted by xo
Посмотреть сообщение
You are so annoying sew semi, would you please fuck off, you are the typical cunt that gives no helping hand at all, alright, you just had a ton of replies here for no actual reason just to shit post, so, that is typically a shit shit posting about shitty stuff you like where you bring your shitty shit in other people's shit, keep your shit in the shit can and get the shit out of here.
lol I agree 100 percent with this, sew semi is just a fucking constant complainer, if you're replying to the scripting help section at least give some help and stop being so arrogant you gremlin fuck.
Reply
#20

Now if you needed an example of off-topic shit posting, pretty much everyone else in this thread is doing so. Don't be fooled though, they aren't in it for you, they're trying to be 'cool' in their own delusional sense over shit they can't get over.

Suck it up butter cups.

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Some scripting, a timer, and some thinking.
Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
edit:found out about
PHP код:
GetServerTickRate() 
None of their 'contributions', even with the people who simply throw out functions and callbacks at whim, have given anything new.

Other than this one.
Quote:
Originally Posted by aoky
Посмотреть сообщение
no one likes you

GetServerTickRate() or https://sampwiki.blast.hk/wiki/GetTickCount
And then any 'worth' that I weighed upon them for this, was simply shot to shit...

Quote:
Originally Posted by aoky
Посмотреть сообщение
lol I agree 100 percent with this, sew semi is just a fucking constant complainer, if you're replying to the scripting help section at least give some help and stop being so arrogant you gremlin fuck.
This is the quality of mob mentality, mixing with the internet, and combining on a development forum.


Giving help, doesn't necessarily mean giving the answers, and not helping people to figure it out by themselves, therefore instilling a more in-depth learning experience as they are actually DOING it, not just reciting the fucking bullshit.

OP, you're cool... Avoid trash like these.
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)