Jump to content
  • 0

ERROR PAWN


WiDuAlK

Question

Nick: WiDuAlK

Problema: Register dini (tutorialul lui Gireada)

Erori / warnings: [pawn]D:\BlackFlash\gamemodes\GM.pwn(298) : error 035: argument type mismatch (argument 1)

D:\BlackFlash\gamemodes\GM.pwn(298) : error 039: constant symbol has no size

D:\BlackFlash\gamemodes\GM.pwn(298) : error 035: argument type mismatch (argument 2)

D:\BlackFlash\gamemodes\GM.pwn(298) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.[/pawn]

Lini/script: Uitati aici tot ce am facut si unde am ajuns http://pastebin.com/cm46T1vm din mai multe Warning si Error cam 26 am ajuns la 4 ERROR si m-am blocat

Ai incercat sa rezolvi singur ?: Da dar nu imi iese...

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

[pawn]D:\BlackFlash\gamemodes\GM.pwn(298) : warning 219: local variable "pw" shadows a variable at a preceding level

D:\BlackFlash\gamemodes\GM.pwn(299) : error 035: argument type mismatch (argument 1)

D:\BlackFlash\gamemodes\GM.pwn(299) : error 035: argument type mismatch (argument 1)

D:\BlackFlash\gamemodes\GM.pwn(299) : error 035: argument type mismatch (argument 2)

D:\BlackFlash\gamemodes\GM.pwn(299) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.[/pawn]

am pus asta:

[pawn]case DIALOG_LOGIN:

  {

  if(!response) Kick(playerid);

  else

  {

        incercari[playerid]++;

        if(incercari[playerid] == 3) return Kick(playerid);

    new pwlength = strlen(inputtext);

    if(pwlength > 3)

    {

        new pw[200];

        format(pw, sizeof(pw), "%s", dini_Get(file, "parola");//stocam parola in variabila pw

        if(strcmp(inputtext, pw) == 0)

        {

                    format(P_Data[MAX_PLAYERS][oras], 30, dini_Get(file, "oras");

                    P_Data[playerid][varsta] = dini_Get(file, "varsta");

                    format(P_Data[MAX_PLAYERS][sex], 20, dini_Get(file, "sex");

              P_Data[playerid][logged] = 1;

                    SpawnPlayer(playerid);

        }

        else

        {

              ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_MSGBOX, "Login", "Parola Gresita!", "OK", "Cancel");

        }

    }

    else

    {

        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_MSGBOX,  "Login", "Trebuie sa introduci o parola", "OK", "Cancel");

    }

  }

  }

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.