Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GUI.settext(); (https://forums.graalonline.com/forums/showthread.php?t=134259361)

xMane 05-31-2010 03:28 AM

GUI.settext();
 
PHP Code:

function onTimeout()
{
   
this.hirebiz clientr.bizname;
 
this.findselected findplayer(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerName.SetText(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerRank.SetText(this.findselected.clientr.bizrank);
 
Biz_PlayerAdmin.SetText(this.findselected.clientr.bizadmin);
setTimer(0.05);


why doesnt this show other player's names and info only mynes when selectd.
it shows the other player's name only no bizrank or bizadminlevel.

xAndrewx 05-31-2010 03:34 AM

Quote:

Originally Posted by xMane (Post 1579521)
PHP Code:

function onTimeout()
{
   
this.hirebiz clientr.bizname;
 
this.findselected findplayer(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerName.SetText(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerRank.SetText(this.findselected.clientr.bizrank);
 
Biz_PlayerAdmin.SetText(this.findselected.clientr.bizadmin);
setTimer(0.05);


why doesnt this show other player's names and info only mynes when selectd.
it shows the other player's name only no bizrank or bizadminlevel.

You can't read clientr flags from the clientside, I'd recommend storing the biz rank/admin in the players attr (player.attr[##]), that way you can read it to and from the server.


READ CHRIS VIMES POST, HE EXPLAINED ALOT:
http://forums.graalonline.com/forums...hp?t=134259285

xMane 05-31-2010 03:10 PM

OH i got you thanks so it would be

PHP Code:

//#CLIENTSIDE
function onTimeOut() {
 
this.findselected findplayer(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerName.SetText(Biz_BizPlayerList.getselectedtext());
 
Biz_PlayerRank.SetText(this.findselected.player.attr[10]);
 
Biz_PlayerAdmin.SetText(this.findselected.player.attr[10]);
setTimer(0.05);


? this doesnt work /\

cbk1994 05-31-2010 04:47 PM

I don't mean to sound rude but it seems like you're jumping in way over your head. You should learn the basics of scripting before trying to do things like this since right now there are many flaws with your approach which you won't understand until you're more familiar with Gscript.

Forkk 09-08-2010 07:50 AM

Quote:

Originally Posted by xAndrewx (Post 1579522)
You can't read clientr flags from the clientside, I'd recommend storing the biz rank/admin in the players attr (player.attr[##]), that way you can read it to and from the server.


READ CHRIS VIMES POST, HE EXPLAINED ALOT:
http://forums.graalonline.com/forums...hp?t=134259285

BS you totally can read clientr from clientside, you just can't set it from clientside

oo_jazz_oo 09-08-2010 07:52 AM

Quote:

Originally Posted by Forkk (Post 1599580)
BS you totally can read clientr from clientside, you just can't set it from clientside

You can't read other players clientr variables from clientside.

Was that worth the bump?

Forkk 09-08-2010 07:55 AM

Oh umm
X_X My bad! LOL


All times are GMT +2. The time now is 07:56 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.