![]() |
player's string problem
Ok, so, im trying to set another player's string to a value, but it wont work.
PHP Code:
PHP Code:
Any ideas about whats wrong? |
findPlayer(this.target[1]).client.tradereq = player.id;
|
Normally also it is best to specify the object you are working with, i.e.
PHP Code:
|
Quote:
Quote:
I keep saying it, theres something wrong with the server. |
Quote:
PHP Code:
|
I tried setting client flags on players remotely on his server. I've never tried this clientside but apparently it would work.
I did PHP Code:
Ziro couldn't read this clientflag that was set on him and when he reconnected it was gone. Kinda wierd x_x When i used serverside to set player.attr[5] though i could not read a client flag that was set through RC on him. I normally do this thing serverside but if it if supposed to work clientside that would be cool. |
What? You're supposed to be able to work with client flags clientside.
|
You can't edit other players clientside, no matter if it are "client." flags.
|
Quote:
I was talking about working with your own clientside. I would think it would be obvious that you can't edit other players clientside. |
Quote:
Im pretty sure I have been able to set other clients cleitn. VARIABLE's clientsided in the past? |
Quote:
You can try it and it wont work. Something like: PHP Code:
It will only work if you set it to yourself, not anyone else. |
This was the odd part Gambet. It saved my client string to the players object. I verified it was the same object as It showed the players chat as well. It may not have been stored as a client in the end but it was still there.
|
Quote:
Most likely just temporarily storing information for you to handle. None of it would be saved unless you sent the temporary information in a trigger over to the serverside to be set. |
Quote:
|
Quote:
PHP Code:
|
Quote:
1) findplayer( params[ 1]).chat = "Trying to set your chat!"; 2) triggerserver( "gui", this.name, "setchat", player.chat.substring( 6)); getplayer isn't gs2, its gs1 |
| All times are GMT +2. The time now is 08:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.