Jump to content

Question

Posted

Primesc aceste 2 errori 

C:\Users\DanielCelSmech3er\Desktop\server samp\gamemodes\Gamemode.pwn(209) : error 033: array must be indexed (variable "Gen")
C:\Users\DanielCelSmech3er\Desktop\server samp\gamemodes\Gamemode.pwn(212) : error 033: array must be indexed (variable "Gen")

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1){
        if(response){
            Gen == "Barbat";
        }
        else{
           Gen == "Femeie";
    }
    }
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}

 

La acest cod

Am facut asa 

new Gen[32];

 

1 answer to this question

Recommended Posts

  • 0
Posted
Acum 4 ore, CanonRock a spus:

Primesc aceste 2 errori 

C:\Users\DanielCelSmech3er\Desktop\server samp\gamemodes\Gamemode.pwn(209) : error 033: array must be indexed (variable "Gen")
C:\Users\DanielCelSmech3er\Desktop\server samp\gamemodes\Gamemode.pwn(212) : error 033: array must be indexed (variable "Gen")

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1){
        if(response){
            Gen == "Barbat";
        }
        else{
           Gen == "Femeie";
    }
    }
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}

 

La acest cod

Am facut asa 

new Gen[32];

 

Gen = "Bărbat" nu cu (==)

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.