Jump to content
  • 0

Erori la compilare


Question

Posted

Am urmat tutorialul acesta http://www.sa-mp.ro/forum/index.php/topic,10189.0.html si acum cand compilez am urmatoarea eroare:

[pawn]D:\Jocuri\Full\GTA San Andreas Multi Player Server\gamemodes\vortex.pwn(57) : error 028: invalid subscript (not an array or too many subscripts): "format"

D:\Jocuri\Full\GTA San Andreas Multi Player Server\gamemodes\vortex.pwn(57) : warning 215: expression has no effect

D:\Jocuri\Full\GTA San Andreas Multi Player Server\gamemodes\vortex.pwn(57) : error 020: invalid symbol name ""

D:\Jocuri\Full\GTA San Andreas Multi Player Server\gamemodes\vortex.pwn(57) : warning 215: expression has no effect

D:\Jocuri\Full\GTA San Andreas Multi Player Server\gamemodes\vortex.pwn(57) : error 001: expected token: ";", but found "}"

D:\Jocuri\Full\GTA San Andreas Multi Player Server\gamemodes\vortex.pwn(57) : 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]

Ma poate ajuta cineva sa o rezolv?

3 answers to this question

Recommended Posts

Posted

[pawn]public OnPlayerConnect(playerid)

{

gPlayerLogged[playerid] = 0;

new name[MAX_PLAYER_NAME], file[256];

    GetPlayerName(playerid, name, sizeof(name));

format{file, sizeof{file},SERVER_USER_FILE, name};

if{!dini_Exist{file}}

{

    ShowPlayerDialog{playerid, 1, DIALOG_STYLE_INPUT, "Salut, nu esti inregistrat", "scrie mai jos parola dorita","Register","Close"};

}

if{fexist{file}}

{

    ShowPlayerDialog{playerid, 2, DIALOG_STYLE_INPUT, "Salut, Esti deja inregistrat", "Scrie parola mai jos", "Login", "Close"};

}

return 1;

}[/pawn]

Posted

huh??...dc ai facut: format{ file, sizeof{ file }...?

incearca asa:

[pawn]

public OnPlayerConnect(playerid)

{

gPlayerLogged[playerid] = 0;

new name[MAX_PLAYER_NAME], file[256];

    GetPlayerName(playerid, name, sizeof(name));

format(file, sizeof(file),SERVER_USER_FILE, name);

if(!dini_Exist(file))

{

    ShowPlayerDialog( playerid, 1, DIALOG_STYLE_INPUT, "Salut, nu esti inregistrat", "scrie mai jos parola dorita","Register","Close");

}

if(fexist(file))

{

    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Salut, Esti deja inregistrat", "Scrie parola mai jos", "Login", "Close");

}

return 1;

}

[/pawn]

;)

Fara reclama in semnatura!

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.