KillTimer (not an array or too many subscripts) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: KillTimer (not an array or too many subscripts) (
/showthread.php?tid=524783)
KillTimer (not an array or too many subscripts) -
Beckett - 08.07.2014
------
Re: KillTimer (not an array or too many subscripts) -
kamiliuxliuxliux - 08.07.2014
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.
Re: KillTimer (not an array or too many subscripts) -
BroZeus - 08.07.2014
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);
}
Re: KillTimer (not an array or too many subscripts) -
Beckett - 08.07.2014
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);
Re: KillTimer (not an array or too many subscripts) -
Beckett - 08.07.2014
#Double posted by mistake check the above post for the edit.
Re: KillTimer (not an array or too many subscripts) -
Jefff - 08.07.2014
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;
}
Re: KillTimer (not an array or too many subscripts) -
Beckett - 08.07.2014
That didn't really help all you did was changing the indentation of the lines, same errors.
Re: KillTimer (not an array or too many subscripts) -
BroZeus - 08.07.2014
try changing name of array name caz the array name for timer and timer name are same