Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Linear Mode
[PHP] Add all previous numbers in a for loop
kristo
Banned
Posts: 352
Threads: 37
Joined: Jun 2012
#4
28.02.2019, 19:44
The output you get is correct, it does the thing you described... Your "desired" output is the value of
$i
until 3 and from then on it's
3 ^ ($i - 2)
.
Find
Reply
«
Next Oldest
|
Next Newest
»
Messages In This Thread
[PHP] Add all previous numbers in a for loop
- by
Mr.Anonymous
- 28.02.2019, 19:11
Re: [PHP] Add all previous numbers in a for loop
- by
Banditul18
- 28.02.2019, 19:14
Re: [PHP] Add all previous numbers in a for loop
- by
Mr.Anonymous
- 28.02.2019, 19:26
Re: [PHP] Add all previous numbers in a for loop
- by
kristo
- 28.02.2019, 19:44
Re: [PHP] Add all previous numbers in a for loop
- by
benjaminjones
- 28.02.2019, 20:14
Re: [PHP] Add all previous numbers in a for loop
- by
Mr.Anonymous
- 28.02.2019, 20:21
Re: [PHP] Add all previous numbers in a for loop
- by
benjaminjones
- 28.02.2019, 20:24
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help