What I'm trying to do is to get some strings for the specified player, using with (getplayer())
I've tried many many different ways but nothing is working. I've tried setting this.strings, thiso.strings, level.strings. I just don't understand why it's not working.
NPC Code:
WAY 1------------------------------------------------
if (actionserverside) {
if (strequals(#p(0),load)) {
with (getplayer(#p(1))) { // getting the strings from
setstring thiso.test,#F,#s(client.hp);
}
with (getplayer(#p(2))) { // the account that is trying to get the strings
setstring client.test,#s(thiso.test);
}
}
}
WAY 2------------------------------------------------
if (actionserverside) {
if (strequals(#p(0),load)) {
with (getplayer(#p(1))) {
setstring this.test,#F,#s(client.hp);
}
}
}
// access it from clientside
WAY 3------------------------------------------------
if (actionserverside) {
if (strequals(#p(0),load)) {
with (getplayer(#p(1))) {
setstring thiso.test,#F,#s(client.hp);
}
setstring this.test,#s(thiso.test);
}
}
// access this.test later
Anyone help?