Jump to content
  • 0

pomoc Registrace přes dialog


mEy

Dotaz

Zdravím dávám do módu registraci přes dialog podle Tutorialu a ukázalo mi to erory

 

C:\Documents and Settings\Matýsek\Plocha\mod.pwn(280) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Matýsek\Plocha\mod.pwn(280) : warning 215: expression has no effect
C:\Documents and Settings\Matýsek\Plocha\mod.pwn(280) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Matýsek\Plocha\mod.pwn(280) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Matýsek\Plocha\mod.pwn(280) : fatal error 107: too many error messages on one line

 

 

if(udb_Exists(PlayerName(playerid))) // Když jeho ucet existuje

 

Tohle je řádek 280

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0
	PLAYERLIST_authed[playerid] = false;
if (!PLAYERLIST_authed[playerid])
{
if(udb_Exists(PlayerName(playerid))) // Když jeho ucet existuje
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registrace","Vítej zpět !\nNapiš heslo !","Použít","Odpojit"); // Když existuje zobrazíme dialog
}    else    {
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registrace","Vítej !\nZaregistruj se, napiš heslo","Použít","Odpojit"); // Když neexistuje zobrazíme dialog
}
}
return 1;
}

Link to comment
Share on other sites

  • 0

stock PlayerName(playerid) {
new n[MAX_PLAYER_NAME];
GetPlayerName(playerid, n, MAX_PLAYER_NAME);
return n;
}

místo té tvé definice

Link to comment
Share on other sites

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...