C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(62) : warning 219: local variable "Spielerdatei" shadows a variable at a preceding level
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(63) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(284) : error 004: function "Login" is not implemented
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(335) : warning 219: local variable "Spielerdatei" shadows a variable at a preceding level
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(336) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(347) : error 055: start of function body without function header
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(350) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(352) : error 010: invalid function or declaration
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(356) : error 010: invalid function or declaration
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(358) : error 010: invalid function or declaration
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(364) : error 054: unmatched closing brace ("}")
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(365) : warning 203: symbol is never used: "Spielerdatei"
C:\Users\Epixel\Desktop\test\gamemodes\test.pwn(365) : warning 203: symbol is never used: "name"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Script:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==DIALOG_LOGIN)
{
if(response==0)
{
SendClientMessage(playerid,BLAU,"Du hast den Server verlassen.");
Kick(playerid);
return 1;
}
if(response==1)
{
if(!strlen(inputtext))
{
SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug.");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Dein Passwort wurde gefunden. Gib bitte das Passwort ein.","Login","Abbrechen");
return 1;
}
else
{
Login(playerid,inputtext);
return 1;
}
}
}
if(dialogid==DIALOG_REGISTER)
{
if(response==0)
{
SendClientMessage(playerid,BLAU,"Du hast den Server verlassen.");
Kick(playerid);
return 1;
}
if(response==1)
{
if(!strlen(inputtext))
{
SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug.");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte dein gewünschtes Passwort ein.","Registrieren","Server verlassen");
return 1;
}
else
{
Register(playerid,inputtext);
return 1;
}
}
}
if(dialogid==DIALOG_TUTORIAL)
{
if(response==1)
{
SetPlayerPos(playerid,1229.1448,-912.7173,42.7600);
SendClientMessage(playerid,0x2163FFCD,"Du wurdest teleportiert");
}
if(response==0)
{
SendClientMessage(playerid,BLAU,"Ok,dann halt nicht");
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
stock Register(playerid,key[])
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
dini_Create(Spielerdatei);
dini_Set(Spielerdatei,"Passwort",key);
SendClientMessage(playerid,BLAU,"Erfolgreich registriert.");
dini_IntSet(Spielerdatei,"Level",0);
return 1;
}
stock Login(playerid,key[]);
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
if(!strcmp(key,dini_Get(Spielerdatei,"Passwort"),false))
{
SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
SendClientMessage(playerid,BLAU,"Erfolgreich eingeloggt.");
return 1;
}
else
{
SendClientMessage(playerid,BLAU,"Falsches Passwort.");
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Dein Passwort wurde gefunden. Gib bitte das Passwort ein.","Login","Abbrechen");
}
}]