Jump to content

Question

3 answers to this question

Recommended Posts

  • 0
Posted

Nu prea ma pricep dar cred ca e asa

tu ai: SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0) Checkpoint[playerid] ++;

Eu zic ca e SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0), Checkpoint[playerid] ++;

Cel putin mie daca nu pun , imi da eroare

  • 0
Posted
On 6/17/2018 at 10:52 AM, AlexuTzuBss said:

Salut, am  asta https://pastebin.com/ieEyHQVM si am erori la case 1,2 ,3 https://pastebin.com/6XMdXF2J

Nu imi dau seama ce sa le fac. 

ti-a dat @RusKo69 raspunsul mai sus, ai 2 variante ori le pui asa : SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0), Checkpoint[playerid] ++; sau le pui  { SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0); Checkpoint[playerid] ++; }, pentru ca compilatorul nu are de unde sa stie ca trebuie sa execute ambele lucruri daca nu pui ceva care sa ii indice asta

  • 0
Posted (edited)
public OnPlayerEnterCheckpoint(playerid)
{
    new string[128];
    Checkpoint[playerid] ++;
    switch(Checkpoint[playerid]) {
        case 1: {
            DisablePlayerCheckpoint(playerid);
            Checkpoint[playerid] = 0;
            SCM(playerid, -1, "Foloseste /work.");
            return 1;
        }
        case 2: SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0);
        case 3: SetPlayerCheckpoint(playerid, 2561.8125,1561.8441,10.8203, 3.0);
        case 4: SetPlayerCheckpoint(playerid, 2581.3254,1060.5686,11.7751, 3.0);
        case 5: SetPlayerCheckpoint(playerid, 2239.0520,1285.5895,10.8203, 3.0);
        case 6: SetPlayerCheckpoint(playerid, 1029.3654,2005.4865,11.4609, 3.0);
        case 7: SetPlayerCheckpoint(playerid, 1030.8094,2028.4299,11.4683, 3.0);
        case 8: SetPlayerCheckpoint(playerid, 984.5137,2030.2045,11.4688, 3.0);
        case 9: SetPlayerCheckpoint(playerid, 1084.3754,2032.0221,11.4683, 3.0);
        case 10: SetPlayerCheckpoint(playerid, 1085.4152,2000.8522,11.4609, 3.0);
        case 11: SetPlayerCheckpoint(playerid, 1084.5104,1976.9949,11.4688, 3.0);
        case 12: SetPlayerCheckpoint(playerid, 2556.8208,2022.3246,10.8176, 3.0);
        case 13: SetPlayerCheckpoint(playerid, 2018.5828,2766.5452,10.8265, 3.0);
        case 14: {
            DisablePlayerCheckpoint(playerid);
            Checkpoint[playerid] = 0;
            new money 50000 + random(70000);
            GivePlayerMoney(playerid, money);
            format(string, sizeof(string), "Salariul tau este de $%d", money);
            SCM(playerid, 0xD4FF00FF, string);
            FinishJob(playerid);
        }
    }
    return 1;
}
Edited by MiritaXD

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.