View Single Post
  #5  
Old 08-26-2009, 03:04 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by cyan3 View Post
if (playerenters) can be used if you've already called a function.

PHP Code:
//#CLIENTSIDE
function onCreated() {
 if (
playerenters) {
   
//Stuff
 
}

That's mixing GS1 and GS2, which is bad.

Also for future note you shouldn't have to call onCreated or onPlayerEnters unless you're re-initializing your script for whatever reason.

I.e:

PHP Code:
function whatever() {
  
// whatever "calls" onCreated();
  
onCreated();

Edit: lol, two negative verdicts.
__________________
Quote:
Reply With Quote