|
|
|
|
Would you like to get all the new info from
PSX-Scene in your email each day?
Want to learn more about the team keeping you up to date with the latest scene news?
Read about them now! Check out our Developer bios, too! | ||
|
|
anyone got a keyboard map? compiler error KEY_F7 undeclared

IS GAME KEYBOARD KEY JUST PRESSED - GTAModding
https://code.google.com/p/hyperdbg/s...c=svn130&r=123
i'm intrigued to know what your working on![]()
Im trying to make a mod but it keeps freezing... i put those prints in there so i can have an idea of where its freezing but i dont know what line is causing it.
Here is the code:
NOTE: Please pretend that for the codes sake r = 5, also this is a half of a PC mod im porting then im adding my own little touch to it, so with that said i do not know exactly how CREATE_NM_MESSAGE worksCode:print("2"); for (h = 1500; h > 0; h--) { WAIT(30); GENERATE_RANDOM_INT_IN_RANGE(1, 55, &r); print("3"); if (r == 5 && !IS_PED_RAGDOLL(pPlayer)) { CREATE_NM_MESSAGE(1, 198); SEND_NM_MESSAGE(pPlayer); SWITCH_PED_TO_RAGDOLL(pPlayer, 10000, (int)(800 + h / 2), 1, 1, 1, 0); GIVE_PLAYER_RAGDOLL_CONTROL(GET_PLAYER_ID(), true); } print("4"); GENERATE_RANDOM_INT_IN_RANGE(0, 255, &red); GENERATE_RANDOM_INT_IN_RANGE(0, 255, &green); GENERATE_RANDOM_INT_IN_RANGE(0, 255, &blue); GET_CHAR_COORDINATES(pPlayer, &x, &y, &z); print("5");
Do you know where i can find alex's tutorials on here?
For debugging it's a good way to find bugs using print commands at every call. Try putting a wait(0); after every print, sometimes it may freeze but still manage to execute to the next print if you dont "wait" for the previous code to complete, thereby giving a false reading.

| « Previous Thread | Next Thread » |