Hallo,
er zeigt mir diese Error
E:\includes\backup.pwn(32946) : error 017: undefined symbol "sendername"
E:\includes\backup.pwn(32946) : error 017: undefined symbol "sendername"
E:\includes\backup.pwn(32946) : error 029: invalid expression, assumed zero
E:\includes\backup.pwn(32946) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
hier die Zeile:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 12345)
{
if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "/UserFiles/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "Der Username ist schon vergeben.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Willkommen, %s\nDu hast noch keinen Account.\nBitte registriere dich:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Registration",regstring,"Registrieren","Exit");
}
}
if(dialogid == 12346 || dialogid == 12347)
{
if(strlen(inputtext))
{
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
SetCameraBehindPlayer(playerid);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"FALSCHES PASSWORT\nGebe das richtige PW ein:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4)
{
SCM(playerid, COLOR_COLOR_LIGHTRED, "Verarsche uns nicht! BANNED!");
Ban(playerid);
}
}
}