SA-MP Forums Archive
On player join problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: On player join problem (/showthread.php?tid=313439)



On player join problem - Alexander_123 - 25.01.2012

Hello!
If a player join in my server then the message is not showing ( Player has joined the server (Country) )
It was working before but now it is not.and in my testing server it is working fine..
Anyone know how to fix this shit?


Re: On player join problem - Dan_Barocu - 25.01.2012

can i see your command where you worked?


Re: On player join problem - Alexander_123 - 25.01.2012

in OnPlayerConnect callback
pawn Код:
if(ServerInfo[ConnectMessages] == 1){
        new pAKA[256];
        pAKA = dini_Get("ladmin/Config/aka.txt",tmp3);
        GetPlayerCountryName(playerid);
        new mess[128],IP[128];
        GetPlayerIp(playerid,IP,sizeof(IP));
        format(mess,sizeof(mess),"%s has joined the server.  [ Country: %s | IP Address: %s ]",PlayerName,GetPlayerCountryName(playerid),IP);
        printf(mess);
        format(string, sizeof(string), "** %s [Id:%d] has joined the server.(%s)", PlayerName, playerid, GetPlayerCountryName(playerid));
        SendClientMessageToAll(COLOR_GREY, string);}
But it is working fine in my testing server and not working in the main server (hosted server)