Jump to content

Kasper

Membru
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Kasper

  1. Acum 25 minute, Kasper a spus:

    iti multumesc, +respect

     

    Acum 27 minute, AlexxAdv a spus:

    Iti dau exemplu...

    CMD:test(playerid, params[])

    {

             SetPlayerCheckpoint(playerid, x,y,z, 5.0);

             CP[playerid] = 1000;

             return 1;

    }

    Apoi te duci la public onplayerentercheckpoint

    si faci

    if(CP[playerid] == 1000)

    {
              GivePlayerMoney(playerid, 100000);

             SCM(playerid, -1, "Ai  primit $100,000");

    }

    frate insa mai am o problema, imi da erorile astea la linia if(CP[playerid] == 1000)

     C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : error 029: invalid expression, assumed zero
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : error 029: invalid expression, assumed zero
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : warning 215: expression has no effect
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : error 001: expected token: ";", but found "]"
    C:\Users\Acer\Desktop\gm ragnor\gamemodes\ragnor.pwn(123) : fatal error 107: too many error messages on one line

    am definit cp, am facut cam tot ce trb cum le rezolv?

  2. Acum 1 minut, AlexxAdv a spus:

    Iti dau exemplu...

    CMD:test(playerid, params[])

    {

             SetPlayerCheckpoint(playerid, x,y,z, 5.0);

             CP[playerid] = 1000;

             return 1;

    }

    Apoi te duci la public onplayerentercheckpoint

    si faci

    if(CP[playerid] == 1000)

    {
              GivePlayerMoney(playerid, 100000);

             SCM(playerid, -1, "Ai  primit $100,000");

    }

    iti multumesc, +respect

    • Thanks 1
×
×
  • 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.