Thread: small problem
View Single Post
  #5  
Old 06-09-2009, 08:22 PM
Seich Seich is offline
Noctorious' NeoHunter
Seich's Avatar
Join Date: Jun 2008
Location: Honduras
Posts: 193
Seich will become famous soon enough
Send a message via MSN to Seich Send a message via Yahoo to Seich
Quote:
Originally Posted by Pelikano View Post
That ^
Oh yeah, apparently I posted the wrong code block -.-' there's a for loop there if I was comparing it to a single string in the array it would be way easier -.-'.

edit: nvm I found an easier way after stopping and thinking about it for second. To fix it I set a variable with the current player.level, and then I just checked onPlayerEnters to see if it's different.

Basically:
PHP Code:
function onPlayerEnters(){
   if(
temp.pllevel != player.level){
  
//stuff
  
}
//for loop resulting in true {
  
temp.pllevel player.level;
//}


Last edited by Seich; 06-09-2009 at 08:43 PM..
Reply With Quote