Jump to content

Am erorii la /buyvip


FreshCandy

Recommended Posts

Asta e comanda adaugata

if (dialogid == BuyVip)
{
    if(response)
    {
        if(listitem == 0)
        {
            if AccInfo[playerid][hours] >= 1) //Orele care trebuie sa le aiba playerul
            {
                AccInfo[playerid][pVip] = 1; //Levelul la VIP
                AccInfo[playerid][hours] -= 1;
            }
            else
            {
                SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule
            }
        }
        if(listitem == 1)
        {
            if AccInfo[playerid][hours] >= 20) //Orele pentru a cumpara VIP
            {
                AccInfo[playerid][pVip] = 2; //Levelul de VIP
                AccInfo[playerid][hours] -= 20;
            }
            else
            {
                SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente
            }
        }
        if (listitem ==  2)
        {
            if AccInfo[playerid][hours] >= 30) //Orele care trebuiesc pentru a cumpara VIP
            {
                AccInfo[playerid][pVip] = 3; //Levelul VIP
                AccInfo[playerid][hours] = 30;
            }
            else
            {
                SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore
            }
}
//Sfarsit...............................................................................................................

Si eroriile sunt astea


C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12932) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12934) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12936) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12938) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12943) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12948) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12950) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12955) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12960) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12962) : error 010: invalid function or declaration
C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12967) : error 010: invalid function or declaration
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


13 Errors.
 

erorile astea sunt la fiecare ''else'' la comanda

Edited by FreshCandy
Link to comment
Share on other sites

2 minutes ago, AlexxAdv said:

Si linille nu le zici care sunt?

12932:       if (dialogid == BuyVip)

12934:      if(response)

12936:          if(listitem == 0)

12938:              if AccInfo[playerid][hours] >= 1) //Orele care trebuie sa le aiba playerul

12943:              }
            else
            {

 

Link to comment
Share on other sites

3 minutes ago, AlexxAdv said:

12932: presupun ca defapt este if(dialogid == DIALOG_BUYVIP) in loc de ce ai tu acolo.

Iar la alea cu if AccInfo iti lipseste paranteza rotunda, adica, if(AccInfo si continuarea.

am modificat. tot la fel apare

Link to comment
Share on other sites

1 minute ago, AlexxAdv said:

Vezi la ce enum ai pVIP si vezi la ce enum este definit AccInfo

// Enums
new reactionstr[9]; //randomly generated string
new reactioninprog; //what status the reactiontest is at
new reactionwinnerid; //id of the current reactiontest winner
new reactiongap; //timer to restart ReactionTest()
new raddon[15] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
// Some new stuff
new Reclamtd[][]=

 

pun acolo New pVip

New AccInfo 

sau?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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