Thread: gui windows x_X
View Single Post
  #20  
Old 03-19-2006, 05:48 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by excaliber7388
I also added in a numerical value, the time for jailings (DR has an auto unjail system) however, it's not sending the time right it's params[3]*3600 and it shows up at literally params[3]*3600 (which may as well be 0) since gs2 doesn't have a #v() what do I do?
Sounds like you need to stop putting "quotemarks" around variable names.
Quote:
Originally Posted by excaliber7388
Also, I had hoped to display text like this:
player.chat="Jailed for " params[2] " for " params[3] " hours";
bu obviously, that doesn't work
(params[2] is the reason, 3 is the time).
PHP Code:
player.chat "Jailed for " params[2] @ " for " params[3] @ " hours";
// Or even better:
player.chat format("Jailed for %s for %i hours"params[2], params[3]); 
__________________
Skyld
Reply With Quote