Jump to content
  • 0

Eroare in pawn: "invalid expresion"


JeLLy

Question

Am luat un gamemode...si am inceput sa il editez....dar imi da foarte multe warninguri si erori la o linie legata de login...am decis sa postez pt ca e linia de la login si e destul de importanta presupun...deci va rog sa ma ajutati!

[pawn]if(dialogid==1234)

{

    if(response==1)

    {

        GetPlayerName(playerid, playername, sizeof(playername));

format(string, sizeof(string), "users/%s.ini", playername);

if(fexist(string))

{

gPlayerAccount[playerid] = 1;

new loginmsg[450+1];

format(loginmsg,450,"{FFFFFF}Welcome back, {F79D3B}%s\n{FFFFFF}Please enter your password to login to your account.\n\n\n*{FFFFFF}Last Login %s",playername, dini_Get(LFile(playerid),"LoginDate"));

ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"{FFFFFF}Account Login",loginmsg,"Login","Quit");

}

else

{

dini_Create(string);

gPlayerAccount[playerid] = 0;

new loginmsg[450+1];

format(loginmsg,450,"{FFFFFF}Welcome to the server, {F79D3B}%s\n{FFFFFF}Please register an account by entering your desired password bilow.",playername);

ShowPlayerDialog(playerid,2,DIALOG_STYLE_PASSWORD,"{FFFFFF}Account Registration",loginmsg,"Register","Quit");

}[/pawn]

primesc o eroare la acea linie: [pawn]ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"{FFFFFF}Account Login",loginmsg,"Login","Quit");[/pawn] ...erorile au codul urmator: 029, 001 si un fatal error: 107 si multe warninguri: 215; va rog ajutor!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

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.