ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Sep 21, 2019 11:31 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Apr 05, 2019 3:42 pm 
User avatar

Joined: Fri Mar 30, 2018 2:48 am
Posts: 246
Let's say I have an array of strings and want to make an "if statement" that goes through the entire array and checks if anything match,
how would this be done in a BMS script?

_________________
AES Key commissions:
https://bit.ly/31PFc3i


If you appreciate my work and want to donate:
Paypal: ghfear@hotmail.com


Top
   
PostPosted: Fri Apr 05, 2019 10:26 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
Code:
getarray STRINGS 0 -0x80000000
for i = 0 < STRINGS
    getarray STR 0 i
    if STR & "search"
        print "%STR%"
    endif
next i


Top
   
PostPosted: Fri Apr 05, 2019 10:33 pm 
User avatar

Joined: Fri Mar 30, 2018 2:48 am
Posts: 246
aluigi wrote:
Code:
getarray STRINGS 0 -0x80000000
for i = 0 < STRINGS
    getarray STR 0 i
    if STR & "search"
        print "%STR%"
    endif
next i


Thank you. :) Will make a lot of things easier and more organized than having over 100 if statements after eachother lol.

_________________
AES Key commissions:
https://bit.ly/31PFc3i


If you appreciate my work and want to donate:
Paypal: ghfear@hotmail.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited