Jump to content

Registrace přes dialog


Wenik01

Recommended Posts

Pls poraďte

 

 C:\Documents and Settings\Administrator\Plocha\Untitled23.pwn(239) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Administrator\Plocha\Untitled23.pwn(239) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Plocha\Untitled23.pwn(239) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Plocha\Untitled23.pwn(239) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Plocha\Untitled23.pwn(239) : fatal error 107: too many error messages on one line 

 

Řádek:

 

if(udb_Exists(PlayerName(playerid)))

 

Celé to vypadá takhle

 

{
new novyhrac[100];
	GetPlayerName(playerid, novyhrac, 24);
   format(novyhrac, 100, "Hráč %s se připojil.", novyhrac);
   SendClientMessageToAll(COLOR_GREY, novyhrac);
   	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

  • 2 weeks later...
  • Majitel
Asi sa mu nepaci funkcia udb_Exists skus ju sem hodit.

 

udb_Exists je součástí includu DUDB pokud vím.. Neraď pokud se v tom nevyznáš..

 

Já bych to viděl spíš na funkci PlayerName...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...