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]);