View Single Post
  #5  
Old 01-10-2013, 12:54 AM
BboyEatsbacon BboyEatsbacon is offline
The Bacon Man
BboyEatsbacon's Avatar
Join Date: Feb 2011
Location: United States
Posts: 60
BboyEatsbacon will become famous soon enough
Quote:
Originally Posted by greggiles View Post
PHP Code:
function onSetDescription() {
 
player.description "blah, blah, blah";
 } 
It would be better to do something like:
PHP Code:
function onSetDescription() {
    
player.client.description "hihihihihi";
    
showText(213screenwidth/2-50screenheight/2+50"showg""b""DESCRIPTION:" @(player.client.description)); 
 } 
I'd recommend updating the text right when you update the description with onSetDescription, then have the original launch read from the var, which is why it is still being set here.

Add that to your inventory script, you can't cross-reference other scripts whilst on clientside, as that is provoking serverside data.

You can use a trigger to the server then back to the client, but that's just a waste of time when you have a shorter, less complex way of completing your task that still is as efficient.
Reply With Quote