18.08.2013, 21:52
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case Login: {
if(!strcmp(DOF2_GetString(GetPlayerFile(playerid),"Senha"),inputtext))
{
Logado[playerid] = true;
SendClientMessage(playerid, COLOR_WHITE, "Vocк acaba de ser logado com Sucesso!");
SetSpawnInfo(playerid,0,0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
TogglePlayerSpectating(playerid,0);
}
else ShowPlayerDialog(playerid,Login,DIALOG_STYLE_INPUT,"Login","Senha Incorreta se errar mais vezes sera banido","Logar","Sair");
{
case Registro: {
if(strcmp(LastSenha[playerid],inputtext)) return ShowPlayerDialog(playerid,Registro_Confirme,DIALOG_STYLE_INPUT,"Login","Senhas nгo conferem","Logar","Sair");
DOF2_SetString(GetPlayerFile(playerid),"Senha"),inputtext))
ShowPlayerDialog(playerid,Registro,DIALOG_STYLE_INPUT,"Registro","Digite sua senha Para Registrar!","Registrar","Sair");
Logado(playerid) = true;
SendClientMessage(playerid,COLOR_WHITE,"Registrado e Logado com sucesso o BPS Agradece!");
SetSpawnInfo(playerid,0,0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
TooglePlayerSpectating(playerid,false);
}
case Registro_Confirme: {
LastSenha[playerid] = inputtext;
ShowPlayerDialog(playerid,Registro,DIALOG_STYLE_INPUT,"Registro","Digite sua senha novamente!","Registrar","Sair");
}
return 1;
}
Код:
D:\Server 03x\gamemodes\BPSRPG.pwn(236) : warning 217: loose indentation D:\Server 03x\gamemodes\BPSRPG.pwn(237) : warning 217: loose indentation D:\Server 03x\gamemodes\BPSRPG.pwn(238) : error 014: invalid statement; not in switch D:\Server 03x\gamemodes\BPSRPG.pwn(240) : warning 202: number of arguments does not match definition D:\Server 03x\gamemodes\BPSRPG.pwn(240) : warning 215: expression has no effect D:\Server 03x\gamemodes\BPSRPG.pwn(240) : error 001: expected token: ";", but found ")" D:\Server 03x\gamemodes\BPSRPG.pwn(240) : error 029: invalid expression, assumed zero D:\Server 03x\gamemodes\BPSRPG.pwn(240) : error 029: invalid expression, assumed zero D:\Server 03x\gamemodes\BPSRPG.pwn(240) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.