Quote:
Originally Posted by Pelikano
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;
//}
}