Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted (edited)

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
Posted
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
            {

 

Posted
4 minutes ago, AlexxAdv said:

Si linille nu le zici care sunt?

sau cum ti le spun

Posted

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.

Posted
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

Posted
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?

Posted
7 minutes ago, AlexxAdv said:

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

da-mi tu alta comanda fara zcmd , daca ai

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.