Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Regadring The Chckbox Gui. (https://forums.graalonline.com/forums/showthread.php?t=134264059)

Gunderak 08-02-2011 09:17 AM

Regadring The Chckbox Gui.
 
im making a feedback script that echo's to rc for example.
PHP Code:

echo("New Feedback!"@player.nick@"Question 1: Do You Like The Server?"@checkbox_1.status); 

what would you use to echo the status of a checkbox?
sorry if im asking in the wrong area. i dont go on forums that much.

@The Title. Sorry i accidentally mis spelt the title X_X

Mark Sir Link 08-02-2011 09:34 AM

checkbox_1.checked

However, to access that object directly you'd have to be on the clientside so this wouldn't echo to RC. You'd need to pass the state of that check box to the serverside

Gunderak 08-02-2011 09:37 AM

in the time i posted it i have figured out how to change the stats but i think maybe by setting a serverside flag youd be able to display it? like
PHP Code:

if(checkbox_1.checked == true){
server.checkbox1=

then
PHP Code:

function onActionServerSidecmd ){
  if ( 
cmd == "SendFeedback" ) {
  echo(
"TESTING"@server.checkbox1);
  }
  } 

maybe thatd work il have to experiment.

Twinny 08-02-2011 10:09 AM

You can't set server. flags clientside. You can't even see server. flags clientside: only serverr. (but you can't set those either).

Use a triggerserver()

Mark Sir Link 08-02-2011 10:14 AM

Quote:

Originally Posted by Gunderak (Post 1661191)
in the time i posted it i have figured out how to change the stats but i think maybe by setting a serverside flag youd be able to display it? like
PHP Code:

if(checkbox_1.checked == true){
server.checkbox1=

then
PHP Code:

function onActionServerSidecmd ){
  if ( 
cmd == "SendFeedback" ) {
  echo(
"TESTING"@server.checkbox1);
  }
  } 

maybe thatd work il have to experiment.

this wouldn't be a good idea since you'd have to be constantly chjecking to see if a server var changed, and it wouldn't be unique to the players. You should be using a triggerserver to send the data and store it on the server.


All times are GMT +2. The time now is 02:19 PM.

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