![]() |
triggerserver/gui lag?
Im having a bit of a problem with one of my npcs triggering the server, when i am using triggerserver() i echo the params to my RC and they are exactily what they should be, but the params are Effecting the last player that I used the npc on.
Example: I will use the npc to edit "Andy0687" by selecting from a GUITextList then i will select someone else through the textlist to edit them, but it will still edit me until i press the button twice, on the second time, it effects the correct person. As ive said I already tried Echoing all the params and they all turn out right, anyone else experinced this? If it matters im doing the triggerserver through a button on a GUI. Thanks |
posting the part of the script which is doing this could help?
Also do you have like PHP Code:
if don't, it will effect the player itself |
Quote:
I dont know what part is doing this, its always effecting the LAST EFFECTED PLAYER once before effecting the correct account, even though after I echo the params they are all showing that the newly selected player should be the one effected. The way im trying to explain it is even though it sends a new set of params, the last set of params are always executed a second time before the new set is recognized. This ONLY started when i started using a GUI and triggerserver() instead of triggeraction() to trigger to the serverside. Quote:
Its just an example! |
post the recieving at serverside?
PHP Code:
btw, you can post some parts of the script that you think is wrong with the script tho |
PHP Code:
If i switch to Player1 for example, and warp to them, and walk away, and choose to warpto player2, when i press the button again for player2 it will warp to Player1, when i press it a second time, it warps to player2, even though when i warped the FIRST time, the params said this.paccount was set to Player2. |
PHP Code:
try PHP Code:
|
Quote:
But my problem is that it isnt recieving the triggers accurately! Its not changing to the proper findplayer to warp me to the right location even though the params say it is, until i click the button TWICE! Did you read what i said last post? >_< |
also, function SomeWarpButton_onAction() {
its function SomeWarpButton.onAction() { and have you tried like .onSelect()? dunno if that would work anyway, but try to catch the event to it, or post whole script and take out some parts? |
Quote:
Quote:
Quote:
|
I've been testing, and when using triggerserver() or triggerclient()
I've found out that, the param where you put the name of the weapon, if you put this.nick, it'll use more time sending and recieving the trigger, but if you write in the name directly instead of using this.nick, it will send and recieve faster.. dunno why tho. Btw, you could test with a name written directly into the triggerserver() you're using instead of "this.nick". |
Quote:
I am wondering why no one else has chimed in on this issue yet? Ive tried everything to get it to stop! |
Bumped because i think ive isolated the problem?
It seems to be only when i select the players account out of a GuiTextListCtrl when i refresh the control to select the account again, i get the delay before it becomes active on the player, Likewise i get the delay when i am selecting a new player out of the TextList. I dunno if this is relevant in any way. |
try use a sleep(.05); before doing it, if you have a timeout in the script, call the timeout after the sleep
|
Quote:
PHP Code:
Edit: I realise its been almost a month since i posted this but I decided to go back and try to find out the problem because it was aggrivating me |
| All times are GMT +2. The time now is 11:16 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.