PDA

View Full Version : Errors [Helper will get +1]


James Coral
01/01/2012, 03:47 PM
Hey all i scripting my own COD gm
i have made it 37%

My Errors:

C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "Brazil"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "England"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "France"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "Germany"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "India"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "Indonesia"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "Japan"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "Mexico"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "Russia"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "SetPlayerTeamFromClass"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "SetPlayerToTeamColour"
C:\Users\eesti\Desktop\test1\COD\gamemodes\cod2.pw n(2020) : warning 203: symbol is never used: "USA"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


12 Warnings.


The Error is comeing From:

new USA;
new Russia;
new Mexico;
new Japan;
new India;
new Germany;
new France;
new England;
new Indonesia;
new Brazil;

Who wants help me? (I WILL GIVE HIM CODE IN PRIVATE MESSAGES)

Bogdan1992
01/01/2012, 03:48 PM
It's just a warning, it says that is not used.

James Coral
01/01/2012, 03:50 PM
Mhm Ok :D

And If you have ideas for my COD Server Please Give :D

James Coral
01/01/2012, 03:52 PM
and Btw +1 Rep!

Mosslah
01/01/2012, 04:08 PM
These aren't errors, don't worry. PAWNO is just alerting you that these variables have not yet been used in your script. Whenever you do use them in the future, you won't get these warnings - but even with these warnings, your script will still work.

niels44
01/01/2012, 05:20 PM
pwn is just saying that u have never used USA and all the other ones so when u use them then they will dissapear but if u dont want to use them then just remove all your new lines u posted here

eеe
01/01/2012, 07:30 PM
he has understood dont tell again and again

DarkKillerWithPride<3
01/01/2012, 09:14 PM
If you are still worried and not using the vars for a while one way to get rid of the errors would be to add the following to your script:


#pragma unused USA
#pragma unused Russia
#pragma unused Mexico


Remember when you do use it to remove the statement I use this as its quicker then just deleting the var and better if you wish to have some general idea of the vars you use.

Sasino97
01/01/2012, 09:17 PM
Use the keyword stock instead of new:

stock USA;
stock Russia;
stock Mexico;
stock Japan;
stock India;
stock Germany;
stock France;
stock England;
stock Indonesia;
stock Brazil;

James Coral
02/01/2012, 06:26 AM
Thanks EVRYONE +REP