View Single Post
  #2  
Old 07-16-2009, 07:39 PM
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
You're assigning the owner variable backwards.

this.variable = this.value;

Also you're mixing GS1 with GS2 again.. I could of sworn we went over this in another thread. Use this.chat instead of message.

this.chat = "whatever you want it to say" SPC player.account;

You can store the account in a attr[], and use that on the clientside to prevent people from walking into it or whatever you want.

Example:
PHP Code:
function onPlayerChats() {
  if (
player.chat == "setaccount") {
    
this.owner player.account;
    
this.attr[2] = this.owner;
  }
}
//#CLIENTSIDE
function onPlayerTouchsMe() {
  if (
this.attr[2] == player.accountplayer.chat "You are the owner!";

Using your properly scripted owner flag you can check if someone has rented the space or not with a check like so..

if (this.variable != null) echo("This variable has a value of" SPC this.variable @ "!");
__________________
Quote:
Reply With Quote