Thread: goto
View Single Post
  #4  
Old 02-02-2008, 05:49 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by projectigi View Post
well like

PHP Code:
function onCreated()
  {
  if( 
foobar )
    goto 
blub;
  
player.chat "d";
  }

function 
onPlayerChats()
  {
  
Label blub;
  
player.chat "c";
  } 

and it will go to the script part where the label blub is and continue there, so if foobar is true the player will say c @ onCreated
else he will say d, but when foobar is true he wont say d at any time
well, I don't see any use of it tho Unless you give other examples :o
__________________
Reply With Quote