|
07-16-2012
|
25
|
|
299,792,458 m/s
Join Date: Mar 2012
Location: Lebanon
Posts: 3,581
|
You can call it however you want to. You can also call it temp.stefan, temp.john, ... . On Graal it's mostly called temp.pl for one player and temp.plyrs/temp.plys for more players. It's just easier for others to see what you want to do with it. Kinda like organisation but there are no rules for that.
The 2nd "param", in this case players, is always an array. In this case players is an array, just like allplayers, serveroptions.staff, ... . You could also do something like
PHP Code:
temp.testarray = {"hello", "my", "name", "is", "calli"};
for (temp.whatever: temp.testarray) {
echo(temp.whatever);
}
Basicly its the same (in this case) as
PHP Code:
temp.testarray = {"hello", "my", "name", "is", "calli"};
for (temp.i=0; temp.i<temp.testarray.size(); temp.i++) {
echo(temp.testarray[temp.i]);
}
in my opinion.
I just prefer the for() loop in this case
|
I know about the type of calling, but why temp. not this.? I'm still getting confused as this point
|
|
|
|