Give money to all?
#3

Quote:
Originally Posted by kaisersouse
Quote:
Originally Posted by krawN
Hey, I have a question.

How could I give money to all just like this?

Quote:

GivePlayerMoney(playerid, 1000);

Thanks.
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
   if(IsPlayerConnected(i))
   {
     GivePlayerMoney(i,1000);
   }
}
^ that is your run-of-the-mill for-loop for all (connected) players. Study it...you will use it often.
Ok.

Could you tell me what means "i++"? I don't know why it's there.

Thanks
Reply


Messages In This Thread
Give money to all? - by krawN - 13.07.2009, 19:32
Re: Give money to all? - by kaisersouse - 13.07.2009, 19:35
Re: Give money to all? - by krawN - 13.07.2009, 19:39
Re: Give money to all? - by arnutisz - 13.07.2009, 19:46
Re: Give money to all? - by kaisersouse - 13.07.2009, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)