Jump to content
  • 0

CMD:startv


Maimuta

Question

Salut,am bagat jobul de "vanzator de inghetata" pe un gm insa la comanda "/startv" imi da niste erori Ma poate ajuta cineva ? 

COMANDA:

CMD:startv(playerid, params[])
{
        VanzatorJob[playerid] = 1;
        SetPlayerCheckpoint(playerid, -128.7080,-371.8720,1.4297,5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai inceput munca ca fiind un Vanzator de înghetata!");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Urmareste checkpoint-urile rosii de pe harta pentru a fi platit!");
        return 1;
    }
    if(VanzatorJob[playerid] == 0)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 2;
        GivePlayerMoney(playerid, 5000);
        SetPlayerCheckpoint(playerid, 1966.4468,-2014.7025,12.9459, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}5000 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 2)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 3;
        GivePlayerMoney(playerid, 8500);
        SetPlayerCheckpoint(playerid, 1996.1888,-1757.2458,12.9417, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}8500 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 3)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 4;
        GivePlayerMoney(playerid, 9540);
        SetPlayerCheckpoint(playerid, 2210.5994,-1750.5896,13.0132, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}9540 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 4)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 5;
        GivePlayerMoney(playerid, 100000);
        SetPlayerCheckpoint(playerid, 2113.4717,-2102.0234,13.1208, 5.0);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit suma de bani, pentru aceasta livrare: {FF0000}100000 $!");
        return 1;
    }
    if(VanzatorJob[playerid] == 5)
    {
        DisablePlayerCheckpoint(playerid);
        VanzatorJob[playerid] = 0;
        GivePlayerMoney(playerid, 200000);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai terminat tura,poti incepe din nou daca doresti");
        return 1;
}

ERORILE:

C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\da.pwn(4237) : error 036: empty statement

C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\test.pwn(37548) : error 028: invalid subscript (not an array or too many subscripts): "VanzatorJob"
C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\test.pwn(37548) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\test.pwn(37548) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\test.pwn(37548) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.