KillTimer (not an array or too many subscripts)
#1

------
Reply
#2

pawn Код:
if (!response) return Kick (playerid);  KillTimer(login_timer[playerid]);
There you return ONLY func.: Kick(playerid), so code doesn't look at something after that. Try replacing KillTimer with Kick with each other.
Reply
#3

make sure its
login_timer[MAX_PLAYERS]
on top of ur script

and
pawn Код:
if (!response) return Kick (playerid);  KillTimer(login_timer[playerid]);
replace aobve code with this
pawn Код:
if (!response)
{
KillTimer(login_timer[playerid]);
return Kick (playerid);  
}
Reply
#4

Quote:
Originally Posted by kamiliuxliuxliux
Посмотреть сообщение
pawn Код:
if (!response) return Kick (playerid);  KillTimer(login_timer[playerid]);
There you return ONLY func.: Kick(playerid), so code doesn't look at something after that. Try replacing KillTimer with Kick with each other.
Ignore this, it has nothing to do with my problem.

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
make sure its
login_timer[MAX_PLAYERS]
on top of ur script
It is and still didn't work.

pawn Код:
forward login_timer(playerid);
Reply
#5

#Double posted by mistake check the above post for the edit.
Reply
#6

pawn Код:
case DIALOG_LOGIN:
{
    if(!response)
    {
        KillTimer(login_timer[playerid]);
        return Kick(playerid);
    }

    if(udb_hash(inputtext) == PlayerInfo[playerid][pPass]) KillTimer(login_timer[playerid]);
    else ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Account Login","You have entered an invalid password.\nType your password below to login.","Login","Quit");

    return 1;
}
Reply
#7

That didn't really help all you did was changing the indentation of the lines, same errors.
Reply
#8

try changing name of array name caz the array name for timer and timer name are same
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)