Wei Posted September 14, 2014 Posted September 14, 2014 how to use while in scripts ? Diet with russian vodka, lose 3 days in one week !
darhal Posted September 14, 2014 Posted September 14, 2014 (edited) While is a type of loops here an eg num = 0 function () while num <= 5 do num = num + 1 end end -- while still working until num be 5 so it will repeat the num = num+1 unitil num reach 6 for more info see tutorials section I recommend xxMadexx tutorial Edited September 14, 2014 by Guest #include <iostream> int main() { std::cout << "C++ is amazing <3" << std::endl; return 0; } I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please
Moderators IIYAMA Posted September 14, 2014 Moderators Posted September 14, 2014 ------------------------------------------------- local outputChatBox = outputChatBox or print ------------------------------------------------- local count = 1 while count <= 10 do outputChatBox(count) count = count+1 end http://www.lua.org/cgi-bin/demo Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Wei Posted September 14, 2014 Author Posted September 14, 2014 Thank you both for explanation Diet with russian vodka, lose 3 days in one week !
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now