Search:

Type: Posts; User: hajas

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,178

    I found the line that is killing the game: ...

    I found the line that is killing the game:



    free(ptr);


    if I remove this no more abort... it's done! :D

    now, wth this make the game freeze? when I free per exemple p without problems?
  2. Replies
    4
    Views
    3,045

    I found the line that is killing the game: ...

    I found the line that is killing the game:



    free(ptr);


    if I remove this then no more abort... it's done! :D

    now, wth this make the game freeze? when I free per exemple p without...
  3. Replies
    3
    Views
    1,178

    I don't know what's is causing the overflow,...

    I don't know what's is causing the overflow, please take a look on my code in that link. (last post) and please tell where could have this problem.

    thanks alot!
  4. Replies
    3
    Views
    1,178

    How to Kill arrays???

    Hello,

    so I'm having a little problem in my code, which is making the game abort after the 3rd time is loading... I'm trying to fix a bug in Quake 2 Evolved.

    I think is something releated of...
  5. Replies
    4
    Views
    3,045

    Done!!!!

    Ok, I done everything that I could to fix the siamese twins bug, and I FIXED!!!! :D

    but I'm having a little problem.... when I quit the server the game abort, or when I change the map for the 3rd...
  6. Replies
    4
    Views
    17,846

    thanks! work great!

    thanks! work great!
  7. Replies
    4
    Views
    17,846

    Num to String? (atoi inverse)

    how can I do the inverse of atoi? here's the code



    Num = atoi(PartC); // Convert to Number
    Num += 15; //add 15
    strcat(String, ToString(Num));


    or something like that
  8. Replies
    4
    Views
    2,759

    thanks for your explanation! now I understand! :P

    thanks for your explanation! now I understand! :P
  9. Replies
    4
    Views
    2,759

    thanks m8! worked great! :D

    thanks m8! worked great! :D
  10. Replies
    4
    Views
    2,759

    Find space inside Array?

    Hello, I'm trying to find the second space inside a array, here's my code:



    Space=0;
    PL=12; //came from another function that is working right!
    PB=0;
    // find PartB from start of...
  11. Replies
    8
    Views
    2,462

    worked now! char *ptr = malloc(151); ...

    worked now!



    char *ptr = malloc(151);

    strcpy(ptr,NewStr);
    origem = strstr(ptr, "origin"); //find the origin position
    loc = origem-ptr;
    free(ptr);
  12. Replies
    8
    Views
    2,462

    seams that I can't create pointers... is just...

    seams that I can't create pointers... is just create one more than the game abort.

    is there a way to do that search? why not working the i+1 index that I did? I remember to do this a lot in the...
  13. Replies
    8
    Views
    2,462

    NewStr is a array... could be that? char...

    NewStr is a array... could be that?

    char NewStr[150];
  14. Replies
    8
    Views
    2,462

    didn't work, make the game abort... any other...

    didn't work, make the game abort... any other way? maybe without use pointers?

    thanks!
  15. Replies
    8
    Views
    2,462

    Find String inside Array?

    Hello, I want to search for a string inside one array, and get the position (index) of the first (or last) char when this was found... I tryed this searching for "play":



    while...
  16. Replies
    5
    Views
    975

    converting to a pointer, I'll be able to do...

    converting to a pointer, I'll be able to do something like this?



    char *array=malloc(150 *sizeof(int));
    char HStr[2000];

    while ((HStr[j] != '}') || (HStr[j]=='\0')){
    ...
  17. Replies
    5
    Views
    975

    Initializing Arrays?

    how can I erase a array?



    char array[150];

    loopA{
    loopB{
    do work over array;
    }
  18. Replies
    16
    Views
    2,019

    I can't even copy the string...

    remove everything, then I'm trying part by part... but I'm stuck in the first one.

    any of what you post worked.



    /*
    =================
    CM_LoadEntityString
    =================
  19. Replies
    16
    Views
    2,019

    ok, I need do a malloc... but about my loop? is...

    ok, I need do a malloc... but about my loop? is right?

    is just because I do not alloc/free mem that didn't work? or what I did isn't possible to do with pointers like I did? or BOTH???

    thanks...
  20. Replies
    16
    Views
    2,019

    hmmm... so how I get the same result as the loop...

    hmmm... so how I get the same result as the loop below using pointers?



    char *String;
    char *NewStr;
    while (String[j] != '}'){
    NewStr[i] = String[j];
    i++;j++;
    }
  21. Replies
    16
    Views
    2,019

    but this is a pointer right? I'm like this: ...

    but this is a pointer right?

    I'm like this:



    char *String;
    char NewStr[];
  22. Replies
    16
    Views
    2,019

    thanks... but I have a little problem here. I...

    thanks... but I have a little problem here.

    I will only know the *String after few lines of code... so I can't know the lenght of this when I declare the strings... is possible to change the size...
  23. Replies
    16
    Views
    2,019

    *String to String[] to *String

    how can I copy a string like *String to a string like String[]? and vice-versa?

    thanks!
  24. Replies
    4
    Views
    3,045

    thanks for all the help... but few things I'm...

    thanks for all the help... but few things I'm still in doubt....

    look:



    while ( HStr[j] != '}' ) { // copy to NewStr each Class
    NewStr[i] = HStr[j];
    ...
  25. Replies
    4
    Views
    3,045

    Fixing bug in Quake 2 Engine!

    Hello,

    I'm trying to fix the siamese twins bug in Quake 2, but I'm working with Quake 2 Evolved to be more precise...

    in resume mappers put the info_player entity a little below the surface to...
Results 1 to 25 of 48
Page 1 of 2 1 2