Plugin possible or wrong?
It's posible to receive played hours(for another name) from gametracker with socket?
I follow OT_207 tutorial (https://forums.alliedmods.net/showthread.php?t=151401) and i make this plugin: PHP Code:
|
Re: Plugin possible or wrong?
BUMP :crab:
|
Re: Plugin possible or wrong?
There are some examples in this thread that can easily be modified to do what you want.
https://forums.alliedmods.net/showthread.php?t=223244 If you're having delay problems I could rewrite it using HTTP2 instead. |
Re: Plugin possible or wrong?
Quote:
|
Re: Plugin possible or wrong?
I try with http library, but is to slow. I got information after 20 sec .
|
Re: Plugin possible or wrong?
Sorry for the delay. I rewrote it using HTTP2 and on-the-fly parsing.
You obviously have to edit the way this information is printed to your liking. I made it fit my purpose of testing. Code:
|
Re: Plugin possible or wrong?
Hey Blackrose .. First of all thank you for helping with the codes everytime ..
I tried the code you made in that thread using HTTP.inc .. There seems to be a little problem .. whenever i type /myinfo in chat .. The server gets stuck for 2-3 seconds and few of the players get Overflowed,I got lagged for atleast a minute .. and suddenly i woke up back in next round .. Checked up the server console it showed almost 10-12 ppl got overflowed and kicked. This was the bad thing that happened.Now Gud thing was this happened second time. When i tried first time .. 2-3 Seconds stucking and game continuous and then out of no where after 15-20 seconds the Info was shown on HUD :grrr: Such a delay is not gud. So i had to remove the plugin as a result.May be the socket connections are happening too slow in that plugin. Now i ll go and try the code you made with Http2.inc and Give you the accurate feedback :D |
Re: Plugin possible or wrong?
@Black Rose : Thank you :), this method is fast.
Here is http2 library: https://forums.alliedmods.net/showpo...62&postcount=1 |
Re: Plugin possible or wrong?
Hi,
Could someone rewrite the plugin of #6 made by black rose? I tried compiling it but it gave errors as below : Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team Rank.sma(67) : error 017: undefined symbol "HTTP2_getDataSafe" Rank.sma(67) : error 088: number of arguments does not match definition 2 Errors. Could not locate output file rank.amx (compile failed). thanks! |
| All times are GMT -4. The time now is 15:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.