View Single Post
  #1  
Old 12-14-2008, 01:32 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
for (temp.pl : players)

Well, I am currently making an Eventy System, and a problem popped up:

As example here:

PHP Code:
  if (params[0] == "EventStart") {
    for (
temp.pl players) {
      
findPlayerbycommunityname(temp.pl).chat "Event" SPC serverr.eventmsg SPC "has started! Say :join to join it!";
    }
    
serverr.event true;
  } 

I want that all the players on the server's chat get changed, but only the chat of the players that are in the same level as I am gets changed.
I think I am using for(tmp.pl : players) wrong or something :o

Any suggestions?
Reply With Quote