#1

Hello, since Mysql was a little difficult to learn in one day, I followed a Tutorial for a login system, I just did My best to do exactly what he did and I don't understand more than 50 percent of what have been done in the tutoriel, I'll try learning Mysql later , but the problem now is, after fixing the errors I saw that I have many warnings, fixed them also except for those saying "warning: 219 local variable "string" shadows a variable at a preceding level" anyway here is the whole code : http://www.2shared.com/file/IVnESQFQ/Training.html
PLEASE CLICK ON THE SECOND DOWNLOAD NOT THE FIRST, = CLICK ON THE SMALLER ONE
warnings
Код:
(305) : warning 219: local variable "string" shadows a variable at a preceding level
(305) : warning 219: local variable "string" shadows a variable at a preceding level
(365) : warning 219: local variable "string" shadows a variable at a preceding level
(365) : warning 219: local variable "string" shadows a variable at a preceding level
(525) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
anyway those warnings always appears on the same lines, idk why, even if I erase the same line, I guess I should make the string a local variable but idk how because idk how mysql uses this variable, I'm a beginner and I find it difficult to understand Mysq
Reply
#2

I am on phone so I can't view that file but according to the warning you need to do this:

This warning appeared because you have this variable as a global (perhaps in the top of your script) change string to something else in these lines (like string12) etc.. It should work.

And you shouldn't learn mysql right now learn y ini or basic file saving first (ini)..
Reply
#3

Thanks I fixed the warnings, +rep but all I did was for nothing, it doesn't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)