Page 1 of 1

Can anyone please fix? My bulletshoot coding just isnt worki

PostPosted: Mon Nov 20, 2006 5:26 pm
by Mailas
My error is that the reprocessor wont come out when the bullet has been said to access the PSP menu files (for exampl,e pressing PSP_CTRL_CROSS)
  Code:
// FUNCTION TO SHOOT BULLETS//

void ShootBullets()
{
   if (pad.Buttons & PSP_CTRL_RIGHT) {
      if (!crossPressed) {
         if (//check the direction of the player//) {
            Pistol[currentBullet].Setup(5, //the direction you want to shoot it//);
         } else if (//if the direction is the other one//) {
            Pistol[currentBullet].Setup(-5, //the direction you want to shoot it//);   
         }
         
            if (pad.Buttons & PSP_CTRL_LEFT) {
      if (!crossPressed) {
         if (//check the direction of the player//) {
            Pistol[currentBullet].Setup(5, //the direction you want to shoot it//);
         } else if (//if the direction is the other one//) {
            Pistol[currentBullet].Setup(-5, //the direction you want to shoot it//);   
         }

Anyone?

PostPosted: Mon Nov 20, 2006 6:24 pm
by ZeroShift
Sorry, I'm normally good with troubleshoots in programming, but my skills in PSP programming are lacking.

What exactly does the PSP do when this error happens (or if it gives it to you when in compiles)

PostPosted: Mon Nov 20, 2006 7:12 pm
by Mailas
No errors on the batch file, but it doesnt show the bullets performing the quivelent action when the button is pressed.