Post: foreach function re-created for Cod4 :)
03-19-2012, 06:53 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Now this might not work... I am tired as hell and don't have cod4 to test. It should work if the getArrayKeys work for cod4 :p

Add this preferrably to utility Winky Winky
    
foreach(key,array)
{
ouput=getArrayKeys(array);
for(i=0;i<output.size;i++)
key[i]=output[i];
return key;
}


an example usage:
    
foreach(player,level.players);
player iPrintln("test");



Now this was made in like 5 minutes, and I don't know if it could help you guys at all but w/e Winky Winky enjoy!
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Jakes625 for this useful post:

Correy, IELIITEMODZX, Uk_ViiPeR
03-20-2012, 03:58 AM #38
pcfreak30
>> PCFreak30.com Happy<<
Um. You can not use a function like a statement. "for" is a QuakeC statement NOT a function. So this is not possible. only way to do it is if you have an eval in which we could have ALOT of fun with that Happy.
03-20-2012, 09:19 AM #39
Correy
I'm the Original
what happened to the for statement Gaspkay:
03-20-2012, 01:06 PM #40
247Yamato
< ^ > < ^ >
Originally posted by Correy View Post
what happened to the for statement Gaspkay:


He is on holidays, Smile. He is swimming:

You must login or register to view this content.
03-20-2012, 02:27 PM #41
Correy
I'm the Original
Originally posted by 247Yamato View Post
He is on holidays, Smile. He is swimming:

You must login or register to view this content.


i see him right there!, get back you!
03-20-2012, 06:14 PM #42
Originally posted by Karoolus View Post
cause in my function, you could do

    thread_all("allies", ::test, "test");

or
    thread_all("Allies", ::test, "test");

or
    thread_all("ALLIES", ::test, "test");


i've found that it's case sensitive, so i just make all characters lowercase



it's useless for fixed strings, but when you use a string from a variable, it's always good to know that you can "convert" to lowercase when needed Winky Winky


Karoolus... in your sig isn't that 3.4mbps? and isn't that 11.0GB the size of it lol?
03-20-2012, 07:15 PM #43
Karoolus
I'm the W@W Menu Guy !
Originally posted by nZxMikeeeyx View Post
Karoolus... in your sig isn't that 3.4mbps? and isn't that 11.0GB the size of it lol?


No.. look:

My Speedtest Result
You must login or register to view this content.

Downloading @ 8MB/s
You must login or register to view this content.

Meanwhile.....
Downloading @ 3.4MB/s
You must login or register to view this content.
put those together & you get:
Hello 11MB/s.... Umad, bro?
03-22-2012, 03:28 PM #44
xRaW
xI2aW-
Originally posted by Karoolus View Post
No.. look:

My Speedtest Result
You must login or register to view this content.

Downloading @ 8MB/s
You must login or register to view this content.

Meanwhile.....
Downloading @ 3.4MB/s
You must login or register to view this content.
put those together & you get:
Hello 11MB/s.... Umad, bro?


Shame your upload speed is a pile of shit Happy Well not shit just not brilliant

The following user groaned xRaW for this awful post:

IELIITEMODZX

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo