y_hooks can`t use
#7

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
They are warnings and very simple to fix.

pawn Код:
warning 219: local variable "ip" shadows a variable at a preceding level
Rename `ip` global variable to something else.

pawn Код:
warning 219: local variable "sName" shadows a variable at a preceding level
Rename `sName` global variable to something else.

pawn Код:
warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
Change the syntax from old and deprecated
pawn Код:
foreach(i, Player)
to the new syntax:
pawn Код:
foreach(new i : Player)
About the other thread, `OnPlayerLogin` is already defined (forwarded) in YSI. Rename it to something else.
`GetIP` is defined more than once and last, change md5 to bcrypt to hash passwords.
i did as you said and solved everything.
i changed the name of sName from y_hooks impl.inc to ssName for that error,and the rest worked as you said. thanks
Reply


Messages In This Thread
y_hooks can`t use - by PepsiCola23 - 16.02.2019, 13:20
Re: y_hooks can`t use - by Calisthenics - 16.02.2019, 13:29
Re: y_hooks can`t use - by PepsiCola23 - 16.02.2019, 14:23
Re: y_hooks can`t use - by Calisthenics - 16.02.2019, 14:25
Re: y_hooks can`t use - by PepsiCola23 - 16.02.2019, 14:57
Re: y_hooks can`t use - by TheToretto - 16.02.2019, 15:09
Re: y_hooks can`t use - by PepsiCola23 - 16.02.2019, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)