Talk:Source Server Query Library: Difference between revisions
DeathByNukes (talk | contribs) |
Tomatopipps (talk | contribs) (got rid of my ramblings) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 25: | Line 25: | ||
What is this supposed to be? | What is this supposed to be? | ||
------------------------------- | |||
It should be this: | |||
typedef bool(WINAPI* SSQ_CALLBACK)(DWORD, PSSQ_REPLY_UNION); | |||
Enjoy =] | |||
== variable value display wrong == | |||
In function SSQ_GetInfoReply variable value display wrong (max_players, num_of_bots, num_players). | |||
As it to correct? | |||
[http://rghost.ru/download/5460609/98532dcfd87f15503c0daf8776085ab628c4fc77/ssq_nw.zip variable value display wrong] | |||
== How do I use this in a C++ program? == | |||
<source lang=cpp>extern"C"{ | |||
#include "SSQ.h" | |||
} | |||
#pragma comment(lib,"SSQ") | |||
//the actual program</source> | |||
--[[User:Tomatopipps|Tomatopipps]] ([[User talk:Tomatopipps|talk]]) 23:51, 11 February 2015 (UTC) |
Latest revision as of 16:51, 11 February 2015
Very nice. ^Ben 16:17, 8 Oct 2005 (PDT)
Would you mind releasing the source code for this library? --Pizzahut
Can this be used in other engines? Rag Doll Kung Fu does something similar. --TomEdwards 15:24, 2 Jun 2007 (PDT)
Are you interest on a PHP5 version?
I am working for the moment on a PHP5 version of the Source Server Query library.
PHP 5 demo of Source Server Query Library (Alpha 1)
I am always open for suggestions.
--Plastofix 13:24, 17 Dec 2007 (PST)
Error in Visual C++ 2008
I get the error "error C4430: missing type specifier - int assumed. Note: C++ does not support default-int"
in SSQ.h line 82: typedef(WINAPI* SSQ_CALLBACK)(DWORD type,PSSQ_REPLY_UNION reply);
I tried changing WINAPI* to WINAPI BOOL* and WINAPI int* but it still refuses.
It's currently defining WINAPI as __stdcall.
What is this supposed to be?
It should be this:
typedef bool(WINAPI* SSQ_CALLBACK)(DWORD, PSSQ_REPLY_UNION);
Enjoy =]
variable value display wrong
In function SSQ_GetInfoReply variable value display wrong (max_players, num_of_bots, num_players). As it to correct?
How do I use this in a C++ program?
extern"C"{
#include "SSQ.h"
}
#pragma comment(lib,"SSQ")
//the actual program
--Tomatopipps (talk) 23:51, 11 February 2015 (UTC)