[HELP] Is these warnings dangerous!? -
ДitisOnHuora - 07.09.2009
warning 208: function with tag result used before definition, forcing reparse
warning 204: symbol is assigned a value that is never used: "turnmes"
warning 204: symbol is assigned a value that is never used: "string"
warning 219: local variable "string" shadows a variable at a preceding level
warning 204: symbol is assigned a value that is never used: "name"
warning 213: tag mismatch
warning 204: symbol is assigned a value that is never used: "string"
warning 204: symbol is assigned a value that is never used: "sendername"
warning 204: symbol is assigned a value that is never used: "mid"
warning 204: symbol is assigned a value that is never used: "plname"
warning 217: loose indentation
warning 225: unreachable code
warning 219: local variable "sendername" shadows a variable at a preceding level
warning 219: local variable "name" shadows a variable at a preceding level
warning 204: symbol is assigned a value that is never used: "carid"
warning 204: symbol is assigned a value that is never used: "giver"
warning 203: symbol is never used: "CKInfo"
warning 203: symbol is never used: "CarSpawns"
warning 203: symbol is never used: "CivFemalePeds"
warning 203: symbol is never used: "CivMalePeds"
warning 203: symbol is never used: "GetVehicleModelIDFromName"
warning 203: symbol is never used: "IRCInfo"
warning 203: symbol is never used: "SavePlayerPos"
warning 203: symbol is never used: "SpeedMode"
warning 203: symbol is never used: "UpdateSeconds"
warning 203: symbol is never used: "aduty"
warning 204: symbol is assigned a value that is never used: "backup"
warning 204: symbol is assigned a value that is never used: "killerteam"
warning 204: symbol is assigned a value that is never used: "victimteam"
Sometimes my server crashes when someone connects. And "OnPlayerConnect" is okay, but still crashes sometimes.
Help?
Re: [HELP] Is these warnings dangerous!? -
ilikepie2221 - 07.09.2009
Warning 203 means you never used those symbols/functions/variables.
Warning 204 means the same as above except you assigned those symbols/functions/variables a value.
Warning 208 means you used a certain symbol/function/variable before you declared/made it.
Warning 213 means you used a tag you shouldn't have. For example, in PlayerToPoint, you're supposed to use the Float: tag, not, for example, and Apple: tag.
Warning 217 means you loosely indented. For example, this is loosely indenting:
pawn Код:
public SomeCallback()
{
// Correct Indentation
// Incorrect
}
Warning 219 means you made that variable at a preceding level. For example:
pawn Код:
new Yay;
public SomeCallback()
{
new Yay; // This would be the warning
}
Warning 225 means that code will never be reached. Look for return, break, continue and goto before this line.
I got this info from the pawn-lang.pdf, try downloading it, :P .
Re: [HELP] Is these warnings dangerous!? -
ДitisOnHuora - 07.09.2009
Yea but, is these that kind of warnings, that i should fix them?
Re: [HELP] Is these warnings dangerous!? -
Correlli - 07.09.2009
Quote:
Originally Posted by ДitisOnHuora
Yea but, is these that kind of warnings, that i should fix them?
|
You should fix every warning you see.
Re: [HELP] Is these warnings dangerous!? -
darkrider366 - 07.09.2009
As don said... (well said =))
You should fix them, The ones which say, ... has not been used means you have a (new lala

and it has not been used in the script, so comment it out till you use it,
For the others, It means that something has not been set correctly.
Re: [HELP] Is these warnings dangerous!? -
Peter_Corneile - 08.09.2009
Go to each line of warning and think of what would most probably be wrong , you will be able to do it and it will also improve your PAWNO