Looping AMXX Pawn - Forum
Counter-Strike Federation Welcome , Leecher | RSS | Thursday, 08 December 16
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum » AMX Mod X » Scripting » Scripting Help » Looping AMXX Pawn
Looping AMXX Pawn
Grade: Copral XenionDate: Monday, 19 October 15, 1:59 PM | Message # 1
Copral
Clan: Member
Experience: 27
Status: Offline
Sebenarnya gw belum begitu paham apa fungsi looping , apa fungsinya untuk chat aja ?

contohnya ini pada plugin precache

Code
for( new i = 0; i < sizeof knife_sounds; i++ )
precache_sound( knife_sounds[ i ] )

for( new i = 0; i < sizeof knife_sounds; i++ )
precache_sound( knifesounds[ i ] )

Mohon penjelasannya ^^ Thank you 

^^
 
Grade: Commander DavidJrDate: Tuesday, 20 October 15, 8:09 PM | Message # 2
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote Xenion ()
for( new i = 0; i < sizeof knife_sounds; i++ )precache_sound( knife_sounds )Looping = pengulangan

Code
for (new i = 0; i < 10; ++i)
{
printf("Counting number: %d\n", i);
}


Output:
Code
Counting number: 0
Counting number: 1
Counting number: 2
Counting number: 3
Counting number: 4
Counting number: 5
Counting number: 6
Counting number: 7
Counting number: 8
Counting number: 9


posted via BlackBerry

Personal Site | CSF Website
 
Forum » AMX Mod X » Scripting » Scripting Help » Looping AMXX Pawn
Page 1 of 11
Search:

Mirum
sample map