View Single Post
  #10  
Old 08-26-2009, 03:20 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by cyan3 View Post
Maybe that was a bad example, this is the script somebody said will work.

PHP Code:
function onTimeout() {
 if (
playerenters) {
  
setTimer(0.5);
   
setani("sit",NULL);
 }



My example was bad, you would call both as a different function if it's onCreated()
I don't mean to be rude, but you should definitely not be giving advice like that when you don't know quite what you're talking about.

Stuff like "if (playerenters)" is GS1, and makes no sense. The idea of coding is creating readable code that flows smoothly. Using stuff like that in combination with GS2 leads to messy code that is hard to follow.
__________________
Reply With Quote