lol. It literally says what's wrong.
identity and plr3msg doesn't exist.
+ Don't come now and say: How to fix.
Printable View
lol. It literally says what's wrong.
identity and plr3msg doesn't exist.
+ Don't come now and say: How to fix.
@jonnybravo
OverZ Source
My error
Your code
const char * v_identity = m_identity.c_str();
ts3client_startConnection(1, v_identity, _voip_serverip,r_voipserverport->GetInt(), VIRTUALSERVER_WELCOMEMESSAGE, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
Error 1 error C2664: 'ts3client_startConnection' : cannot convert parameter 5 from 'VirtualServerProperties' to 'const char *' c:\WarZ\src\EclipseStudio\Sources\TeamSpeakClient.cpp 527 Eclipse Studio
paste me what this is?
VIRTUALSERVER_WELCOMEMESSAGE
pastebin your teamspeakclient.cpp
also should learn how to code or the basics before you try.
Code:
unsigned int ts3client_startConnection(
serverConnectionHandlerID,
identity,
ip,
port,
nickname,
defaultChannelArray,
defaultChannelPassword,
serverPassword);
uint64 serverConnectionHandlerID;
const char* identity;
const char* ip;
unsigned int port;
const char* nickname;
const char** defaultChannelArray;
const char* defaultChannelPassword;
const char* serverPassword;
- serverConnectionHandlerID
Unique identifier for this server connection. Created with ts3client_spawnNewServerConnectionHandler- identity
The clients identity. This string has to be created by calling ts3client_createIdentity. Please note an application should create the identity only once, store the string locally and reuse it for future connections.- ip
Hostname or IP of the TeamSpeak 3 server.
If you pass a hostname instead of an IP, the Client Lib will try to resolve it to an IP, but the function may block for an unusually long period of time while resolving is taking place. If you are relying on the function to return quickly, we recommend to resolve the hostname yourself (e.g. asynchronously) and then call ts3client_startConnection with the IP instead of the hostname.- port
UDP port of the TeamSpeak 3 server, by default 9987. TeamSpeak 3 uses UDP. Support for TCP might be added in the future.- nickname
On login, the client attempts to take this nickname on the connected server. Note this is not necessarily the actually assigned nickname, as the server can modifiy the nickname ("gandalf_1" instead the requested "gandalf") or refuse blocked names.- defaultChannelArray
String array defining the path to a channel on the TeamSpeak 3 server. If the channel exists and the user has sufficient rights and supplies the correct password if required, the channel will be joined on login.
To define the path to a subchannel of arbitrary level, create an array of channel names detailing the position of the default channel (e.g. "grandparent", "parent", "mydefault", ""). The array is terminated with a empty string.
Pass NULL to join the servers default channel.- defaultChannelPassword
Password for the default channel. Pass an empty string if no password is required or no default channel is specified.- serverPassword
Password for the server. Pass an empty string if the server does not require a password.
All strings need to be encoded in UTF-8 format.
@Doky Remove the stuff you added to startup() its not needed there it gets called somewhere else.
This Voip stuff was for a old version of Warz (ALPHA)
remove it complie should be all set.
Thanks, hopefully works, will try it out
Souce v3 working?