Loop problem
#1

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.
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);
}
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.
Reply


Messages In This Thread
Loop problem - by nesty - 25.01.2010, 16:26
Re: Loop problem - by akis_tze - 25.01.2010, 16:28
Re: Loop problem - by nesty - 25.01.2010, 16:57
Re: Loop problem - by ¤Adas¤ - 25.01.2010, 17:04
Re: Loop problem - by nesty - 25.01.2010, 17:08
Re: Loop problem - by ¤Adas¤ - 25.01.2010, 17:10
Re: Loop problem - by Niixie - 25.01.2010, 17:11
Re: Loop problem - by nesty - 25.01.2010, 17:17
Re: Loop problem - by ¤Adas¤ - 25.01.2010, 17:41
Re: Loop problem - by nesty - 25.01.2010, 18:16

Forum Jump:


Users browsing this thread: 4 Guest(s)