Prodig - Komunitas Proyek Digital
Selamat datang di ProDig!
Di sini adalah tempat untuk berbagi proyek (game, seni, program, dan situs).
Di sini Anda juga bisa mendapatkan hal lainnya seperti permainan, berbagi karya, ilmu pengetahuan, kesenangan, dan sebagainya. :)

Ayo daftar lalu langsung login tanpa perlu konfirmasi email sama sekali :D!
Prodig - Komunitas Proyek Digital
Selamat datang di ProDig!
Di sini adalah tempat untuk berbagi proyek (game, seni, program, dan situs).
Di sini Anda juga bisa mendapatkan hal lainnya seperti permainan, berbagi karya, ilmu pengetahuan, kesenangan, dan sebagainya. :)

Ayo daftar lalu langsung login tanpa perlu konfirmasi email sama sekali :D!
Prodig - Komunitas Proyek Digital
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Prodig - Komunitas Proyek Digital

Tempat untuk berbagi proyek digital : Situs, Game, Seni, Program
 
PortalHomeRulesSearchLatest imagesRegisterLog in
Welcome to the ProDig, Guest!

 [GML] Substring Counter Resize
 

 [GML] Substring Counter

View previous topic View next topic Go down 
AuthorMessage
Red Miko
Global Moderator
Red Miko

Status : with Kochiya-sama
Posts : 213
Chips : 5339
Power : 9
Join date : 2010-10-03
Age : 28
Location : now @ Outer-Gensokyo
Quote : DANMAKU BOUNDED FIELD!!
Badge : [GML] Substring Counter Visual12

[GML] Substring Counter _
PostSubject: [GML] Substring Counter   
[GML] Substring Counter Icon_minitimeSun Oct 03, 2010 2:26 pm


Game Maker
Substring Counter
Compability Game Maker 6 Lite or higher
by: Irfan Gunawan

script ini di-implementasikan untuk mencari substring diantara string-string yang ada dalam suatu {variable}

Code:
var arg;
arg[0] = argument0 // substring to find
arg[1] = argument1 // find on which string

var text, pre_text, count;
text=""
pre_text=""
count=0

if arg[0] == "" then return 0

while(text!=pre_text){
  pre_text=text
  text=string_replace(arg[1],arg[0],"")
  count+=(text!=pre_text)
}

return count

silahkan copas ke gm..
arigatou~

--> O: http://vixep.forumotion.com/script-lainnya-f23/gm-substring-counter-t90.htm



Back to top Go down
 

[GML] Substring Counter

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Prodig - Komunitas Proyek Digital  :: Education Chamber :: Programming :: GML-
Jump to: