28.02.2016, 16:43
Hello, I have a little problem, I use include application, when connected to a server that lists the information, but does not appear in the chat. as printf shows up in the server log. knows someone advice?
without errors / warnings
without errors / warnings
Код:
#include <a_samp>
#include <geolocation>
public OnPlayerConnect(playerid)
{
new Country[80], ISP[80], City[80], IP[80];
GetPlayerCountry(playerid, Country);
GetPlayerISP(playerid, ISP);
GetPlayerCity(playerid, City);
new mess[250];
GetPlayerIp(playerid,IP,sizeof(IP));
format(mess,sizeof(mess),"%s has joined the server. [ Country: %s | IP Adresa: %s | ISP: %s | City: %s | GMT: %i ]", GetPlayerName(playerid), Country, IP, ISP, City, GetPlayerGMT(playerid));
printf(mess);
SendClientMessageToAll(-1,mess);
return 1;
}

