Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › CrossFire Hacks & Cheats › CrossFire Tutorials › PART 4: Looping

PART 4: Looping

Posts 1–6 of 6 · Page 1 of 1
Takari
Takari
PART 4: Looping
What is a loop?
You've heard the term loop before, but you may not really be sure what it is. A loop is a series of commands that will continue to repeat over and over again untill a condition is met. For example, let's say you have the names of people in an array, and you wanted print a list of all of the names. You could setup a loop that would print the first persons name, and then move on to the next and print her name, etc (the continuing to repeat itself part.) The condition would be that it stops once all of the names have been used.

Types of Loop:
  1. The Do While Loops
  2. The For Loop
  3. The Do Until Loop


The Do While Loop
Visual Basic supports several versions of the Do statement. The Do While loop is perhaps the most common looping statement that you'll put in Visual Basic programs. Do While works with comparison expressions just as the If statement does. Therefore, the six comparison operators that you learned about in the previous lesson work as expected here. Rather than controlling the one-time execution of a single block of code, however, the comparison expression controls the looping statements.
Here is the format of the Do While loop:

Code:
Do While (example)
   'Statement
Loop
This loop will continue till example is true.The statement keeps repeating as long as the Do While loop's examples continues to stay true.If it gets false the loop will stop,if the example will not get false,the loop will get infinite and it won't let you get out of the program.


The For Loop
I'm not getting into detail because this is the hardest and tricky to use.The For loop also creates a loop. Unlike the Do loops, however, the For loop repeats for a specified number of times.
Format:
Code:
For CounterVar = StartVal To EndVal [Step IncrementVal]
   'Statement
Next CounterVar


The Do Until Loop
Whereas the Do While loop continues executing the body of the loop as long as the comparison test is true, the Do Until loop executes the body of the loop as long as the comparison test is false. The program's logic at the time of the loop determines which kind of loop works best in a given situation.

Do Until works almost exactly like the Do While loop except that the Do Until loop continues executing the body of the loop until the comparison test is true. Like the Do While, the Do Until is a multiline looping statement that can execute a block of code that's one or more lines long.
Here is the format of Do Until:
Code:
Do Until (example)
  'statement
Loop


Remember that the example must be false for the loop to continue.


Thanks @Thunder for approval.
#1 · edited 15y ago · 15y ago
Jigsaw
Jigsaw
Keep with the great work.
#2 · 15y ago
SN
Snipermon
Keep it up Bro
#3 · 15y ago
ShadeyZzZz
ShadeyZzZz
OMG HAX , Good job !
#4 · 15y ago
Takari
Takari
Thanks
I will post PART 5 tomorrow probably.
#5 · 15y ago
Hotmailuseit
Hotmailuseit
I'm sorry i don't really get it? :S

What it do?

What ever it is good job.
#6 · 15y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Tags for this Thread

None