Hey Leute ich habe ein Problem mit WBB_Connect.
Meine Errors:
ZitatC:\Users\Jannik\Desktop\Raluno\Raluno\Server\gamemodes\Raluno.pwn(23300) : error 006: must be assigned to an array
C:\Users\Jannik\Desktop\Raluno\Raluno\Server\gamemodes\Raluno.pwn(67232) : error 035: argument type mismatch (argument 2)
C:\Users\Jannik\Desktop\Raluno\Raluno\Server\gamemodes\Raluno.pwn(67241) : error 035: argument type mismatch (argument 2)
C:\Users\Jannik\Desktop\Raluno\Raluno\Server\gamemodes\Raluno.pwn(23300) : warning 204: symbol is assigned a value that is never used: "pwstring"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Die Zeilen:
Erstmal die Definition:
new pwstring;
forward OnPlayerPW(playerid, password[]);
Zeile 23298-23301
public OnPlayerPW(playerid, password[])
{
pwstring = password;
}
Zeile 67214-67251
if(dialogid == DIALOG_REG2)
{
if(response && strlen(inputtext) > 0)
{
OnPlayerPW(playerid, inputtext);
ShowPlayerDialog(playerid,DIALOG_EMAIL,DIALOG_STYLE_INPUT,"E-Mail Adresse","Bitte gib eine E-Mail für das Forum ein:","OK","Abbrechen");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REG2,DIALOG_STYLE_INPUT,"Account erstellen","Gib das Passwort für deinen Account ein:","OK","Abbrechen");
}
}
if(dialogid == DIALOG_EMAIL)
{
if(response && strlen(inputtext) > 0)
{
new Namewbb[MAX_PLAYER_NAME];
GetPlayerName(playerid,Namewbb,MAX_PLAYER_NAME);
new stateforum = WBB_AddNewUser(Namewbb, pwstring, inputtext, 1);
WBB_SetUserToGroup(Namewbb,3);
if(stateforum == -1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Diese E-Mail gibt es schon.");
ShowPlayerDialog(playerid,DIALOG_EMAIL,DIALOG_STYLE_INPUT,"E-Mail Adresse","Diese E-Mail ist schon vorhanden:","OK","Abbrechen");
}
else if(stateforum == 1)
{
OnPlayerRegister(playerid, pwstring);
}
}
else
{
ShowPlayerDialog(playerid,DIALOG_EMAIL,DIALOG_STYLE_INPUT,"E-Mail Adresse","Bitte gib eine E-Mail für das Forum ein:","OK","Abbrechen");
}
}
Danke im Vorraus