Search:

Type: Posts; User: Caze

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,144

    I checked the FAQ again but there is nothing...

    I checked the FAQ again but there is nothing there that can help me. As far as I know, GetAsyncKeyState() is the only way to check if one of the numpad keys was pressed and I need to use those keys...
  2. Replies
    2
    Views
    1,144

    Problem with getche()

    For some reason my first post was empty.

    Anyway, I'm having a problem with getche() and GetAsyncKeyState(). I use getche() to store the pressed key in a string and use GetAsyncKeyState() to check...
  3. Replies
    18
    Views
    2,711

    Change the ifs to use !strcmpi. if...

    Change the ifs to use !strcmpi.


    if (!strcmpi("HP", pointchoi))
    if (!strcmpi("MP", pointchoi))

    That gets the points value to change but it doesn't fix the loop problem.
  4. Thread: resources

    by Caze
    Replies
    11
    Views
    1,573

    You have to chance your code a bit. For the first...

    You have to chance your code a bit. For the first you can not use MAKEINTRESOURCE that way. If you are going use it, you have to first create a header file where you define the icon, like this:

    ...
  5. Thread: tic-tac-toe

    by Caze
    Replies
    12
    Views
    1,701

    I won the AI with the first try. :D

    I won the AI with the first try. :D
  6. Replies
    12
    Views
    1,132

    I think you should use a while loop instead of...

    I think you should use a while loop instead of three do while loops.


    while (l!=123 || health>0 || foe_health>0)
    {
    //The fight code
    }

    Much easier to understand :)
  7. Thread: Inventory problem

    by Caze
    Replies
    5
    Views
    1,384

    You have to excuse me because I don't know how to...

    You have to excuse me because I don't know how to use those things :( I only know that the one with the array needs a default constructor.
  8. Thread: Inventory problem

    by Caze
    Replies
    5
    Views
    1,384

    Sorry for not having replied to your post...

    Sorry for not having replied to your post Shadow12345. I understood a bit of that what you told and I have now read about vectors. I fixed a another problem with them but I don't understand how...
  9. Thread: Inventory problem

    by Caze
    Replies
    5
    Views
    1,384

    Inventory problem

    I'm making a adventure game that (of course) has an inventory. I have solved this problem, but I wonder if there is a better to way to solve it. I have used arrays where i have stored the different...
  10. Replies
    6
    Views
    6,331

    It works better now. :D Thanks Magos and Monster...

    It works better now. :D
    Thanks Magos and Monster for your help. :)
  11. Replies
    6
    Views
    6,331

    Ok, I will test that as soon as I can. I'm in...

    Ok, I will test that as soon as I can. I'm in school right now so I will post if it worked when I come home.:)
  12. Replies
    6
    Views
    6,331

    Here is the code: int random(int low, int...

    Here is the code:


    int random(int low, int high)
    {
    srand(time(NULL));
    return low + rand()%(high-low+1)
    }

    And with GetTickCount() it is almost the same, you just replace the
  13. Replies
    6
    Views
    6,331

    Random number generator

    I and my friend are having problems with random numbers.
    If we use time(NULL) to seed the random number, the random number appears to be the same many times but chances after a while.
    Ex. 49, 49,...
  14. Thread: Need some help

    by Caze
    Replies
    9
    Views
    1,124

    getch() doesn't take any parameters. It only...

    getch() doesn't take any parameters. It only works if I leave
    getch() empty, and I have tried that and it didn't work.
  15. Thread: Need some help

    by Caze
    Replies
    9
    Views
    1,124

    Caze slaps -Xp-:p It didn't work. Any more...

    Caze slaps -Xp-:p
    It didn't work. Any more ideas?:confused:
  16. Thread: Need some help

    by Caze
    Replies
    9
    Views
    1,124

    If I put a cin in the middle of fight code, the...

    If I put a cin in the middle of fight code, the fight stops and that is not what I want. I want the fight to continue even when I'm writing and when I press enter, I want it to do the thing I wrote.
  17. Thread: Need some help

    by Caze
    Replies
    9
    Views
    1,124

    I dont know how to do that. That's why I need...

    I dont know how to do that. That's why I need help.
  18. Thread: Need some help

    by Caze
    Replies
    9
    Views
    1,124

    Need some help

    The program is doing something and I want to write something to it while it's working.
    Example: I'm in a fight (DOS text-game) and I'm loosing. I want to run to an other room, but I can't do it...
Results 1 to 18 of 18