![]() |
Script Working Offline, Inaffective Online
Yes, I know, this small sample script is simple and pointless (Particularly for an event), but what shall I do to make it work online? I'm quite a bit of a newbie at scripting, but I used to be able to back in the day.
NPC Code: |
Put //#CLIENTSIDE at the top. Also, isn't leftmousebutton an event of it's own?
|
Quote:
|
Quote:
|
leftmousebutton is a flag ;)
|
PHP Code:
|
The 'leftmousebutton' variable might not be set anymore at the time the script is run though, so if people click fast then it might not work.
So either do (in old script): PHP Code:
PHP Code:
http://wiki.graal.net/index.php/Crea...ent/GuiControl |
Quote:
PHP Code:
|
Quote:
PHP Code:
|
Quote:
|
What? I've always done..
NPC Code: ..and it's always worked fine for me. |
Quote:
Quote:
|
Quote:
|
what i mean by the term 'flag':
any var that is a bool usually set by the engine also usually read-only, but not always some examples include mousebuttons player carying bush/bluerock/blackrock/sign etc if the player has spin if the player is male etc. |
In the old engine, the events were called flags, and that is what I thought you meant. I don't see why you attempted to correct me if we were both refering to the same thing.
|
All times are GMT +2. The time now is 08:07 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.