25.01.2010, 16:26
hi, guys can someone tell me why my ping code doesn't work?
I tried a lot of times to fix that but nothing happens. (lol I never liked loops)
i hope u can tell me what i did wrong so i can learn about that.
sry i forgot to tell u what actually should do the code. It has to send a message to the player who wanna see his ping.
I tried a lot of times to fix that but nothing happens. (lol I never liked loops)
i hope u can tell me what i did wrong so i can learn about that.
pawn Код:
public player_ping(playerid)
{
new string[256];
new ping[playerid];
for(new i=0; i<MAX_PLAYERS; i++)
ping=GetPlayerPing(playerid);
format(string,sizeof(string),"ping: %d",ping[playerid]);
SendClientMessage(i,COLOR_LILA,string);
}