pawn is synchronous so any code under your loop will be executed after the loop
Oh Sweet!
All I had to know Thanks guys!
2019-05-28, 09:02 PM
(This post was last modified: 2019-05-28, 09:03 PM by JustMichael.)
(2019-05-28, 09:00 PM)Stanislav Wrote: (2019-05-28, 03:01 PM)Y_Less Wrote: Possibly the only good feature from Python is `for/else`. ?In pawn syntax:
PHP Code:
for (new i = 0; i != 10; )
{
? ?if (Something(i))
? ?{
? ? ? ?break;
? ?}
}
else
{
? ?SomethingFailed();
}
// `break` jumps to here.
The `else` block is only run if the loop exited without calling `break`, i.e. ended normally. ?I'm sure there's a way to fake or mimic it.
Im sorry if im deviating the topic but, why "the only good feature"?
He meant the only good feature that can translate to pawn and be useable (I think that's what he meant)
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder) [Retired]
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer) [Disbanded]
AlphaDM (Tech Support) [Disbanded]
# Services
forum.open.mp (Forum Manager) (Formerly Burgershot.gg)
open.mp (Member)
~ Languages/Frameworks
Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
I don't actually know Python well enough to say that's the only good feature, nor even what I meant which was more "good unique feature".