View Single Post
  #2  
Old 08-22-2009, 06:01 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Yes, you can use a loop instead:

PHP Code:
function onActionSetMatchServer(matchvplayersplayer) {
  for (
temp.0temp.<= 10temp.i++) {
    if (
match == imakevar("serverr.sdematch" i) = {vplayersplayer};
  }

Please note that when defining names for parameters you do not use the temp. prefix to read their values.
Reply With Quote