04.11.2012, 16:53
I added a ping array:
Is the %i right or wrong?
Is the %i right or wrong?
PHP код:
public OnPlayerConnect(playerid)
{
new MSG[250];
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
new Ip[256];
GetPlayerIp(playerid,Ip,sizeof(Ip));
new score = GetPlayerScore(playerid);
new ping = GetPlayerPing(playerid);
format(MSG,sizeof(MSG),"Player %s | IP: %s | Score: %s | Ping: %i has entered in the server", Name, Ip, score, ping);//%i, Is this right or wrong?
SendClientMessageToAll(GREEN,MSG);
return 1;
}