Liebe Community,
undzwar möchte ich ein kleines DM script anfertigen, um mich ein bisschen an scripten zu setzen,
doch leider kann ich den fehler nicht beheben, hier die line:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIA_LOG)
{
if(response == 0)
{
SendClientMessage(playerid, WHITE, "You have clicked Cancel and will kicked!");
Kick(playerid);
return 1;
}
else
{
if(!strlen(inputtext))
{
SendClientMessage(playerid, RED, "The password must have at least 6 numbers & letters!");
ShowPlayerDialog(playerid, DIA_LOG, DIALOG_STYLE_INPUT, "Login","Please Login!","Login","Cancel");
return 1;
}
else
{return Login(playerid, key);}
}
}
}
{
if(dialogid == DIA_REG)
{
if(response == 0)
{
SendClientMessage(playerid, WHITE, "You have clicked Cancel and will kicked!");
Kick(playerid);
return 1;
}
else
{
if(!strlen(inputtext))
{
SendClientMessage(playerid, RED, "The password must have at least 6 numbers & letters!");
ShowPlayerDialog(playerid, DIA_REG, DIALOG_STYLE_INPUT, "Register","Please register!","Register","Cancel");
return 1;
}
else
{return Register(playerid, inputtext);}
}
}
}
Und hier der Error:C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(229) : warning 217: loose indentation
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(238) : error 017: undefined symbol "Login"
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(241) : warning 209: function "OnDialogResponse" should return a value
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(242) : error 055: start of function body without function header
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(243) : error 010: invalid function or declaration
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(245) : error 010: invalid function or declaration
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(249) : error 010: invalid function or declaration
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(251) : error 010: invalid function or declaration
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(253) : error 010: invalid function or declaration
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(257) : error 010: invalid function or declaration
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(259) : error 010: invalid function or declaration
C:\Users\LeNoVo\Desktop\Server\gamemodes\testgamemode.pwn(260) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.