View Single Post
  #65  
Old 02-13-2014, 06:48 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
Maybe this is what you're looking for.

DB_test:
PHP Code:
function onCreated() {
  
this.item_100 = "test";
}

public function 
findItem(temp.id) {
  return 
this.(@ "item_" @ temp.id);
} 
Script:
PHP Code:
function onCreated() {
  
this.id = 100;
}

function 
onPlayerTouchsMe() { 
  
player.chat = DB_test.findItem(this.id);
} 
__________________
Reply With Quote