Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Erica McLane

#101
Cheers!  :)
I can`t test it, because I have only Linux, so send the editor source code to Shawn and I`m waiting a port from him.  ;)
#102
Advanced Technical Forum / Re:If troubles
Tue 15/04/2003 13:24:14
Or:
if ((character[blah].inv(10) = 1) && etc etc {
  AddInventory(2);
  LoseInventory(1);
}
#104
I`ve tried it but it gave me unknown T_WHILE in the line where while is located.
#105
And this should work for more than one listboxes, right?
I will test it and will report any porblems, thanks.
#107
I`ve put this code but I have some problems:

Parse error: parse error, unexpected T_VARIABLE in /home/slaveino/public_html/alphasys/con.php on line 12

CODE:

<?php
// database: ags // table: table1 // fields: test1, test2

// connect
$mc = mysql_connect("localhost","slaveino_usernam","password") or die("error");
$ms = mysql_select_db("slaveino_databaseName") or die("error");
$mq = mysql_query("select * from conf_test3") or die("error");

// read and put into arrays
$count = 0;
while($mf = mysql_fetch_array($mq)) {
  $table['proc_name'][$count] = $mf['proc_name'];
  $table['main_name'][$count] = $mf['main_name'];
  $count++;
}
?>

<html>
  <body>
    <form action="yourscript.php" method="post" name="form">
      <select name="list1">

<?php
// show every test1 in option-tag // output is $list1
  foreach ($table['proc_name'] as $optvalue)
    print "<option value=\"".$optvalue."\">".$optvalue."</option>";
?>

      </select>
     

      <select name="list2">

<?php
// show every test2 in option-tag // output is $list2
  foreach ($table['main_name'] as $optvalue)
    print "<option value=\"".$optvalue."\">".$optvalue."</option>";
?>

      </select>
     

      <input type="submit" name="submit" value="submit" />
    </form>
  </body>
</html>



I`ve also tried this code. The first listbox worked, but the second was empty.

<?
$host = "localhost";
$databasename = "slaveino_databaseName";
$tablename = "conf_test3";
$username = "slaveino_usernam";
$password = "password";

$db = mysql_connect("$host", "$username", "$password");
@mysql_select_db("$databasename", $db);
$query="SELECT * FROM $tablename proc_name";
$result=mysql_query($query);

$num=mysql_numrows($result);

mysql_close();

$i=0;

?>
<form>
<select name="Procesori">
<?
while ($i < $num) {
$proc_name=mysql_result($result,$i,"proc_name");

echo "<option value=\"$proc_name\">$proc_name</option>";

++$i;
}

while ($i < $num) {
$main_name=mysql_result($result,$i,"main_name");

echo "<option value=\"$main_name\">$main_name</option>";

++$i;
}
?>




<input type="submit" value="Poruchai">
<input name="action" type="hidden" value="add">   <input type="reset" value="Izchisti">
</form>


Where is my mistake?
#108
Let`s say I have table1 with two columns - test1 and test2. I want to have two listboxes which will contain the data from test1 and from test2.

listbox1 will contain the data from test1 and listbox2 will contain the data from test2.

How can I do this?
#109
Yes, the same thing. Can you tell me?
#110
How can I fill a drop-down style listbox with data from a MySQL table?
Thanks in advance.

Read below!
#111
I`ve used Melody Assistant, its good.
#112
Nice idea, really.
#113
Hints & Tips / Re:The Strange Planet
Sat 15/03/2003 13:58:45
Spoiler
You should have a rope. Then in the first room use the rope over the cave in from of you (not in front of the player character). This should work.
[close]
#114
I will announce the new "Beginners page" when I come back from my vacation in the beginning of August.


Beginners Tutorials
NOTE: All beginners should check here before asking any questions. This FAQ answers most of the common questions generally asked by newbies. This FAQ has recently been updated and organized and will be added to constantly, with your help. If you feel you have a quesiton (and an answer) that needs to be added, since it is a common problem, then reply to this thread and tell us so.
The useful script functions pack contains things that you may need during your game developent.

Spoiler
UPDATED Online Beginners FAQ (hosted by terranRICH) (command questions answered, LOOK HERE FIRST BEFORE ASKING ANYTHING!!!)
[close]
Currently down.

*to be added to the beginners FAQ* {Where can I find information on combining inventory objects?  Manual Contents->Reference->Interaction events->Inventory item interactions:
Use inventory on inv
occurs when the player uses another inventory object on this one. Add a "Conditional - if inventory item was used" check to determine which item they used. This event allows the player to combine items, and so on. For example, if they had picked up a laptop computer and a battery, seperately, then you could use this to allow them to insert the battery into the computer.


Useful tutorials for AGS (getting started, file input/output, creating a clock in your game, tips & tricks, little-known features, and more)
Offline version of the useful tutorials pack
Useful scripting tutorials (arcade movement, GUIs, idle animations, and more)
GAC Tutorials (save/load GUIs, smart scrolling, stats displays, cursor changing, and more)

Last updated: 18.Aug.2003


Useful script functions
Right Clicking on Inventory Window by Dorcan
Displaying Global Ints by Dorcan
Right-clicking on GUIs by Dorcan
Gabriel Knight Dialog system by Dorcan (direct download)
Display upto 290 GlobalInts with F8 while testing your game by ratracer
Save and display the Total time the game has been running by RickJ
Cutscene with Different Fading Backgrounds using Only One Room by Dorcan
If you want something to be added here just reply.


Here are some functions created by Dorcan that are added in AGS, but you may find them useful.

(AGS - Credits plugin by AJA) Scrolling text credits with fading backgronds - http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=3619
(In AGS - Show/HideMouseCursor) Hide Animated Cursors - http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=3347
(In AGS - build in engine) Stop characters walking into each other -http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=3711
#115
Hints & Tips / Re:The Strange Planet
Wed 12/03/2003 12:10:03
Well, go right. Move your mouse to the end of the screen and click. You may need to set the mode to Walk (with the right mouse button or Ctrl-Z).
#116
Hints & Tips / Re:The Strange Planet
Thu 06/03/2003 13:34:16
Wow. The first person to ask for help for TSP.   :)
#117
Do you want me to build a *.chm file with the manual files?
#118
I will add an option to speed up the character`s walking in v1.1
#119
Barcik - what do you mean by this?
Neole - I don`t thing it`s slow. But I may change it for the next version.
#120
Seven hundred years after the extinction of the human race on the desolate planet arrived a group of peaceful aliens and they maked a small village.
One day Sam Davidson, young pilot of the Burron race was flying over one unknow desert planet but suddenly he ran out of fuel. His ship crashed and the story begins here.
After some playing Sam will find the true: this desert planet is The Earth. What happened to the people? You will have to find...


This is my first serious game, made for one month. I hope you will like it.

Download here:
http://www.agsforums.com/games.php?category=6&action=download&game=178

Special thanks to all betatesters.
SMF spam blocked by CleanTalk