Help me to Fix this problem please.
#7

I added a ping array:
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"NameIpscoreping);//%i, Is this right or wrong?
    
SendClientMessageToAll(GREEN,MSG);
    return 
1;

Reply


Messages In This Thread
Help me to Fix this problem please. - by Magic_Time - 04.11.2012, 16:40
Re: Help me to Fix this problem please. - by tyler12 - 04.11.2012, 16:42
Respuesta: Help me to Fix this problem please. - by Magic_Time - 04.11.2012, 16:47
Re: Help me to Fix this problem please. - by YoYo123 - 04.11.2012, 16:48
Re: Help me to Fix this problem please. - by [KHK]Khalid - 04.11.2012, 16:50
Re: Help me to Fix this problem please. - by Dawnz - 04.11.2012, 16:52
Respuesta: Help me to Fix this problem please. - by Magic_Time - 04.11.2012, 16:53
Re: Help me to Fix this problem please. - by Dawnz - 04.11.2012, 16:58
Re: Help me to Fix this problem please. - by [KHK]Khalid - 04.11.2012, 16:59
Respuesta: Help me to Fix this problem please. - by Magic_Time - 04.11.2012, 16:59

Forum Jump:


Users browsing this thread: 4 Guest(s)