Need fix warnings and errors
#1

Please help correct these warnings and errors. If parts of the code are required.
p.s My English is bad!!!



Код:
C:\xxxxxxx(3034) : warning 215: expression has no effect
C:\xxxxxxx(3075) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(9207) : warning 213: tag mismatch
C:\xxxxxxx(9735) : warning 213: tag mismatch
C:\xxxxxxx(11005) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(11107) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(11993) : warning 217: loose indentation
C:\xxxxxxx(11995) : warning 213: tag mismatch
C:\xxxxxxx(11998) : warning 213: tag mismatch
C:\xxxxxxx(12219) : warning 204: symbol is assigned a value that is never used: "till"
C:\xxxxxxx(12229) : warning 204: symbol is assigned a value that is never used: "till"
C:\xxxxxxx(12239) : warning 204: symbol is assigned a value that is never used: "till"
C:\xxxxxxx(12710) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(12729) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(12881) : warning 213: tag mismatch
C:\xxxxxxx(12887) : warning 213: tag mismatch
C:\xxxxxxx(13078) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(13223) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(13553) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(13729) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(14138) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(14139) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(14193) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(14718) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(14719) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(15081) : warning 204: symbol is assigned a value that is never used: "playername"
C:\xxxxxxx(15520) : warning 217: loose indentation
C:\xxxxxxx(15542) : warning 217: loose indentation
C:\xxxxxxx(15696) : warning 217: loose indentation
C:\xxxxxxx(15764) : warning 213: tag mismatch
C:\xxxxxxx(16349) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(16354) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(16385) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(16390) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(16777) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(17315) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(17319) : warning 219: local variable "p" shadows a variable at a preceding level
C:\xxxxxxx(18004) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\xxxxxxx(18004) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\xxxxxxx(18026) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\xxxxxxx(18026) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\xxxxxxx(18578) : warning 217: loose indentation
C:\xxxxxxx(18578) : error 014: invalid statement; not in switch
C:\xxxxxxx(18578) : warning 215: expression has no effect
C:\xxxxxxx(18578) : error 001: expected token: ";", but found ":"
C:\xxxxxxx(18578) : error 029: invalid expression, assumed zero
C:\xxxxxxx(18578) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

What was the last thing you edited? And, before doing that did it give warnings?
Reply
#3

I have nothing to do. I found myself on the Internet. I will look at its rows, but everything is fine.

http://www.mediafire.com/file/k8b8pb...2/MGC.pwn/file Plug in the .pwn file so that you can see it
Reply
#4

Quote:
Originally Posted by susurs
Посмотреть сообщение
I have nothing to do. I found myself on the Internet. I will look at its rows, but everything is fine.

http://www.mediafire.com/file/k8b8pb...2/MGC.pwn/file Plug in the .pwn file so that you can see it
I'm not downloading anything sorry, it's either a problem on the script or on a include.
Reply
#5

Show the warnings (Tag mismatch) and error lines. Since, I'm not going to download it.
Reply
#6

The warnings are kind of self explained, you might have defined
PHP код:

twice somewhere around the lines the errors are, and scripting without knowing english is a bad way of learning damn how are you going to understand if you are bad at it
Reply
#7

C:\xxxxxxx(1857 : error 014: invalid statement; not in switch
C:\xxxxxxx(1857 : warning 215: expression has no effect
C:\xxxxxxx(1857 : error 001: expected token: ";", but found ":"
C:\xxxxxxx(1857 : error 029: invalid expression, assumed zero
C:\xxxxxxx(1857 : fatal error 107: too many error messages on one line



Reply
#8

Quote:
Originally Posted by severance
Посмотреть сообщение
The warnings are kind of self explained, you might have defined
PHP код:

twice somewhere around the lines the errors are, and scripting without knowing english is a bad way of learning damn how are you going to understand if you are bad at it
That "p-problem" might come from an include file. I had that with "m" already. I used m for a linear equation and it told me that it would be somewhere else already. "Shadows variable at preceding level".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)