RPGMakerID
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Komunitas RPG Maker Indonesia
 
IndeksIndeks  Latest imagesLatest images  PencarianPencarian  PendaftaranPendaftaran  Login  
Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.

 

 [GM8-GML]Number Finder

Go down 
PengirimMessage
Rei_Fan49
Ex-Scripter
Rei_Fan49


Level 5
Posts : 304
Thanked : 15
Engine : Multi-Engine User
Skill : Advanced
Type : Scripter

[GM8-GML]Number Finder Empty
PostSubyek: [GM8-GML]Number Finder   [GM8-GML]Number Finder Empty2010-06-01, 11:18

Number Finder

pengenalan:

Code:
globalvar op, arg;
op[0]="+"
op[1]="-"
op[2]="*"
op[3]="/"
arg[0] = argument[0] // As target
arg[1] = argument[1] // As number to operate
arg[2] = argument[2] // As number to operate
arg[3] = argument[3] // As number to operate
arg[4] = argument[4] // As number to operate

globalvar a,b,c,SUM,str;
a=0;b=0;c=0;i=0;str="";ret="";

do {
  b=0
  do {
    c=0
    do {
      str=string(arg[1])+op[a]+string(arg[2])+op[b]+string(arg[3])+op[c]+string(arg[4])
      SUM[i]=execute_string("return "+str)
      if SUM[i]==arg[0] then {
        show_message("Solution \#"+string(i)+" made at '"+str+"'!") // Hapus line ini, bila tidak ingin ada message
        ret=ret+"Solution \#"+string(i)+" made at '"+str+"'!"+"
"
      }
      c+=1
      i+=1
    } until (c>=4)
    b+=1
  } until (b>=4)
  a+=1
} until (a>=4)
if ret == "" then ret = "No Solutions Made!"
return ret

Fungsi: mencari solusi dari 4 angka
Pasang?
  • di mana aja..
  • cara jalanin >> algorithm_finder(target,num1,num2,num3,num4)
  • pro / lite bisa..


Screenshot:

Dibuat oleh : Irfan (self)
Pakai credit? boleh saja

OOT - lagi nunggu:
OOT - buat mimin atau momod:
Kembali Ke Atas Go down
 
[GM8-GML]Number Finder
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» [GML] Projectile Launch Aiming Finder
» [ASK] Sistem Serial Number
» rpg maker xp ga bisa masukin serial number
» Bagaimana cara membuat Serial Number [RPGMAKER XP]

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Scripts & Event Systems :: Game Maker Scripts-
Navigasi: