Thread: my first code
View Single Post
  #1  
Old 07-13-2009, 09:09 AM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
my first code

I hope this is the right place to post this, but i'm getting into Gscript2, and want to make sure i do everything correct, i was just wondering if i scripted this correctly, and what i could different and/or better.

PHP Code:
function onCreated () 
{
setimg ("door.png");
}

//#CLIENTSIDE

function onPlayerchats () 
{
 if (
player.chat == "hello")
 {
 
this.chat "hi There";
 }
   else  
 if (
player.chat == "you're dumb")
 {
  
this.chat "I do NOT wish to talk to you sir.";
 }

yeah i know it's a talking door.
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.

Last edited by Tigairius; 07-14-2009 at 03:16 AM.. Reason: Don't try to evade the swear filter, it's here for a reason.
Reply With Quote