Talk:Source Server Query Library: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(how do i use this?)
m (forgot to signature)
Line 53: Line 53:
SSQWrapper.obj : error LNK2019: unresolved external symbol "int __stdcall SSQ_SetTimeout(unsigned long,int)" (?SSQ_SetTimeout@@YGHKH@Z) referenced in function _main
SSQWrapper.obj : error LNK2019: unresolved external symbol "int __stdcall SSQ_SetTimeout(unsigned long,int)" (?SSQ_SetTimeout@@YGHKH@Z) referenced in function _main
SSQWrapper.exe : fatal error LNK1120: 4 unresolved externals
SSQWrapper.exe : fatal error LNK1120: 4 unresolved externals
</source>
</source>[[User:Tomatopipps|Tomatopipps]] ([[User talk:Tomatopipps|talk]]) 16:20, 10 February 2015 (UTC)

Revision as of 09:20, 10 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?

variable value display wrong

How do I use this in a C++ program?

So far I've got this:

#include "SSQ.h"
#pragma comment(lib,"SSQ")
//the actual program

but when I try to compile i get

SSQWrapper.obj : error LNK2019: unresolved external symbol "int __stdcall SSQ_GetInfoReply(struct SSQ_INFO_REPLY *)" (?SSQ_GetInfoReply@@YGHPAUSSQ_INFO_REPLY@@@Z) referenced in function _main
SSQWrapper.obj : error LNK2019: unresolved external symbol "int __stdcall SSQ_Initialize(int)" (?SSQ_Initialize@@YGHH@Z) referenced in function _main
SSQWrapper.obj : error LNK2019: unresolved external symbol "int __stdcall SSQ_SetGameServer(char *)" (?SSQ_SetGameServer@@YGHPAD@Z) referenced in function _main
SSQWrapper.obj : error LNK2019: unresolved external symbol "int __stdcall SSQ_SetTimeout(unsigned long,int)" (?SSQ_SetTimeout@@YGHKH@Z) referenced in function _main
SSQWrapper.exe : fatal error LNK1120: 4 unresolved externals

Tomatopipps (talk) 16:20, 10 February 2015 (UTC)