Quote:
|
Originally Posted by krawN
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 
|
"i++" is the same as "i +=1". "i" jus a variable, you can change it you anything you want: letter, or word.