04.02.2014, 04:49
FIXED
new wrongAttempts[MAX_PLAYERS char] = {0, ...};
public OnDialogResponse(..)
{
if( ! isPasswordcorrect() )
{
switch( wrongAttempts{ playerid } )
{
case 0: First attempt;
case 1: Second attempt;
case 2: Third attempt; Kick();
default: {}
}
wrongAttempts{playerid}++;
ShowPlayerLoginDialog(..);
}
return 1;
}
Are you sure you're doing everything correctly? Something like the following:
pawn Код:
|