![]() |
Client.strings + GuiTextCtrl
How would I go about displaying a persons client(r) strings in a GUI?
Would it be something like PHP Code:
If not, how would I be able to do it? |
You should just be able to read them normally on the clientside if you're using your own strings at all, but for other peoples, I guess something like what you are doing is needed.
|
Quote:
PHP Code:
|
Ooh, thanks very much.
|
Quote:
What you should do is reserve a few player.attr[ index]'s for stats, so that you can load them clientside. Example: -------- Every player has this in a clientside script: PHP Code:
A clientside script for loading: PHP Code:
|
Quote:
Also, don't call my script 'a lot of **** here..' until you fix your half-assed lame formatting. |
Quote:
|
Quote:
Quote:
|
If the strings you want to obtain follow a pattern (i.e. clientr.stat_<whatever>), you can use getstringkeys(start).
getstringkeys() returns the suffix of all variables beginning with 'start'. For example, if I have: clientr.zomg_hp = 3 clientr.zomg_rawr = lawl clientr.zomg_pi = 3.14something temp.keys = getstringkeys("clientr.zomg_"); temp.keys will be an array containing the strings {hp,rawr,pi} It's really useful. :) |
Uh, you do realize what Okie said works fine with little to no lag?...
|
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
|
0.1 is minimum on serverside.
|
Quote:
|
What contiga said. It would still cause lag because the attr[] flags need to be sent to everyone when they are updated. If you're doing it in a 0.05 timeout, Lookout Jesus.
|
Quote:
|
Quote:
|
Lmao ^^
|
| All times are GMT +2. The time now is 01:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.