SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/06/2012, 10:46 AM   #1
TheDeath
Big Clucker
 
TheDeath's Avatar
 
Join Date: Jan 2011
Location: Bulgaria
Posts: 136
Reputation: 6
Default help with cycle

How to make that with cycle from 0 to GetMaxPlayers

Code:
SendMessage(0, colour, Language1, Language2);
SendMessage(1, colour, Language1, Language2);
SendMessage(2, colour, Language1, Language2);
SendMessage(3, colour, Language1, Language2);
SendMessage(4, colour, Language1, Language2);
SendMessage(5, colour, Language1, Language2);
SendMessage(6, colour, Language1, Language2);
SendMessage(7, colour, Language1, Language2);
SendMessage(8, colour, Language1, Language2);
SendMessage(9, colour, Language1, Language2);
SendMessage(10, colour, Language1, Language2);
SendMessage(11, colour, Language1, Language2);
SendMessage(12, colour, Language1, Language2);
SendMessage(13, colour, Language1, Language2);
SendMessage(14, colour, Language1, Language2);
SendMessage(15, colour, Language1, Language2);
SendMessage(16, colour, Language1, Language2);
SendMessage(17, colour, Language1, Language2);
SendMessage(18, colour, Language1, Language2);
SendMessage(19, colour, Language1, Language2);
TheDeath is offline   Reply With Quote
Old 20/06/2012, 10:58 AM   #2
[MM]RoXoR[FS]
Gangsta
 
[MM]RoXoR[FS]'s Avatar
 
Join Date: Mar 2012
Location: Gurgaon,India
Posts: 738
Reputation: 138
Default Re: help with cycle

It's called loop
Code:
for(new i=0;i<MAX_PLAYERS;++i)
    SendMessage(i,colour,Language1,Language2);
__________________
My Works
Top Players Include[Sorts Player's Kills|Money|Deaths|ANYTHING YOU WANT|
pawn Code:
public OnPlayerConnect(playerid)
{
  Ban(playerid);
  return 1;
}

Scripting for Money
[MM]RoXoR[FS] is offline   Reply With Quote
Old 20/06/2012, 08:57 PM   #3
TheDeath
Big Clucker
 
TheDeath's Avatar
 
Join Date: Jan 2011
Location: Bulgaria
Posts: 136
Reputation: 6
Default Re: help with cycle

Thank you!
TheDeath is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] nObject Cycle V0.1 Norn Includes 20 16/07/2014 04:58 AM
for cycle Macluawn Scripting Help 4 18/01/2012 04:15 PM
Some error inside cycle. Mmartin Help Archive 5 03/04/2011 12:52 PM
Weather cycle Conroy Help Archive 1 10/09/2010 10:44 PM


All times are GMT. The time now is 09:47 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.