![]() |
function onKeyPressed(???,???)
I'm having trouble understanding the function onKeyPressed. Can I see some examples?
|
PHP Code:
|
What about keycode?
|
HTML Code:
function onKeyPressed(letterCode, letterChar) |
Quote:
|
onKeyPressed(code, key, scancode)
|
I got it all figured out. Thanks, everyone.
|
Andrew: in format, why do you use _?
And: I prefer keycode |
Makes me look smart
HTML Code:
player.chat = format(_("hi %s!"), player.account); |
I do this since it makes me look smart:
PHP Code:
|
rofl
I laughed when I saw that, I thought what a ****ing retard xD |
Quote:
|
The _() is used for translations. All text on Kingdoms, most on Zone and some on Era already use that (although Zone and Era currently have no translation files on the server)
|
Oh, thank me for the ones on Era!!
::high five:: I was fired for no reason though, so like Smu can go to hell. |
| All times are GMT +2. The time now is 09:46 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.