Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Aldo on February 14, 2011, 06:41:03 PM

Title: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: Aldo on February 14, 2011, 06:41:03 PM
I hit the compile button then it gives this message

warning 203: symbol is never used: "Some Symbol"

I ask how do I fix this?
Simple!

Under your defines(#define)
Add


#pragma unused Some Symbol


Then hit compile
Boom Magic!!

Warnings gone  ;)
Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: heekz.shadow on February 15, 2011, 04:44:36 PM
Ehem.... I don't know if I'm right,but I think that #pragma unused can be used in publics,and when it is in a public,putting it under #define may bug it or you'll get a warning.

Just thinking... :D
Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: Aldo on February 15, 2011, 05:13:31 PM
Quote from: heekz.shadow on February 15, 2011, 04:44:36 PM
Ehem.... I don't know if I'm right,but I think that #pragma unused can be used in public

Yea it can

Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: Charleyutton on February 16, 2011, 12:23:54 PM
It just means that you've assigned a variable without ever having used it, if I'm not mistaken. It would be more beneficial to find where the unused symbol, or variable, is and either remove it or check if you have forgotten to use it where you should have.
Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: Boss on February 16, 2011, 12:29:59 PM
Quote from: Charleyutton on February 16, 2011, 12:23:54 PM
It just means that you've assigned a variable without ever having used it, if I'm not mistaken. It would be more beneficial to find where the unused symbol, or variable, is and either remove it or check if you have forgotten to use it where you should have.
^
That's kinda what warnings are for.
Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: heekz.shadow on March 03, 2011, 08:26:39 AM
Hmmh... Thinking that just deleting that unused symbol will return more memmory.
Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: yazeen on March 27, 2011, 02:25:15 PM
It Shows Me Error Dude:

C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(25) : error 017: undefined symbol "Some"
Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: yazeen on March 27, 2011, 02:47:28 PM
Quote from: yazeen on March 27, 2011, 02:25:15 PM
It Shows Me Error Dude:

C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(25) : error 017: undefined symbol "Some"

Worked
Title: Re: [PAWNO] Fixing "warning 203: symbol is never used:"
Post by: Robd on March 28, 2011, 04:07:41 AM
This is pointless, for one thing warnings aren't really hurting you. And second, the whole point of that warning is to tell you if you aren't using a symbol that it's just lagging scripts. This doesnt fix that. Just delete the symbol to clean up the script.