[HELP] Is these warnings dangerous!?
#1

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?
Reply
#2

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 .
Reply
#3

Yea but, is these that kind of warnings, that i should fix them?
Reply
#4

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.
Reply
#5

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.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)