C++ nicckname && server ip (get)

Strechea

Active member
Joined
Jan 26, 2017
Messages
28
Reaction score
2
Hey buddies,  i want to know how to get the current server address *ip* and my  nickname in c++.
I need this functions or samp api, thanks
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Strechea said:
Hey buddies,  i want to know how to get the current server address *ip* and my  nickname in c++.
I need this functions or samp api, thanks



Code:
struct fav_server
{
	const char	*nickname;
	const char	*server_name;
	const char	*ip;
	uint16_t	port;
	char		*password;
};

then include this is .ini

Code:
Format: server[] = "NICKNAME" "Server Name" "address:" "port" "PASSWORD (no need for pass)"
 
Top