Jump to content

Recommended Posts

Posted

    case DIALOG_JOBS:
        {
            switch(listitem) // in functie de ce alege
            {
                case 0: // am facut doar un caz, caz-ul 'Fish'
                {
                    SetPlayerCheckpoint(playerid, 2380.9233, 548.5172, 7.7802, 5.0); // Daca apasa pe el ii seteaza checkpoint la job.
                    new string[60];
                    format(string, sizeof(string), "Ti-am pus un checkpoint pe harta (%0.2f m).", GetPlayerDistanceFromPoint(playerid, 2380.9233, 548.5172, 7.7802));
                }
            }

        }
      return 1;
   }

 

 

EROARE ;002: only a single statement (or expression) can follow each "case"

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.