SA-MP Forums Archive
[PAWNO][WARNING]204-symbol is assigned a value that is never used: - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [PAWNO][WARNING]204-symbol is assigned a value that is never used: (/showthread.php?tid=487924)



[PAWNO][WARNING]204-symbol is assigned a value that is never used: - MCZOFT - 15.01.2014

hello guys , i may need your help here , am creating a faction with a couple of movments (gates etc .. )

PHP код:
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5518) : warning 204symbol is assigned a value that is never used"chiefdoor"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5506) : warning 204symbol is assigned a value that is never used"door1"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5507) : warning 204symbol is assigned a value that is never used"door2"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5508) : warning 204symbol is assigned a value that is never used"door3"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5509) : warning 204symbol is assigned a value that is never used"gate"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5517) : warning 204symbol is assigned a value that is never used"inner"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5511) : warning 204symbol is assigned a value that is never used"lift1"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5512) : warning 204symbol is assigned a value that is never used"lift2"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5513) : warning 204symbol is assigned a value that is never used"lift3"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5514) : warning 204symbol is assigned a value that is never used"lift4"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5515) : warning 204symbol is assigned a value that is never used"lift5"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5516) : warning 204symbol is assigned a value that is never used"lift6"
C:\Documents and Settings\admin\Bureau\role\gamemodes\modernliferp.pwn(5510) : warning 204symbol is assigned a value that is never used"tankgate"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
13 Warnings

here is the code ..


PHP код:

    door1 
CreateObject(2929,215.84347534,1875.71191406,13.93899250,0.00000000,0.00000000,0.00000000); //object(a51_blastdoorl) (1)
    
door2 CreateObject(2929,211.93804932,1875.67260742,13.93899250,0.00000000,0.00000000,0.00000000); //object(a51_blastdoorl) (2)
    
door3 CreateObject(3095,268.81997681,1884.39257812,16.10000038,0.00000000,0.00000000,0.00000000); //object(a51_jetdoor) (1)
    
gate CreateObject(971,96.79296875,1919.98242188,20.70000076,0.00000000,0.00000000,270.00000000); //object(subwaygate) (1)
    
tankgate CreateObject(971,286.83721924,2024.21667480,20.20000076,0.00000000,0.00000000,90.00000000); //object(subwaygate) (2)
    
lift1 CreateObject(16644,135.11923218,1941.11315918,18.39999962,0.00000000,0.00000000,90.00000000); //object(a51_ventsouth) (1)
    
lift2 CreateObject(16644,137.74188232,1941.07629395,18.41726112,0.00000000,0.00000000,90.00000000); //object(a51_ventsouth) (2)
    
lift3 CreateObject(16644,132.55957031,1941.13281250,18.41317177,0.00000000,0.00000000,90.00000000); //object(a51_ventsouth) (3)
    
lift4 CreateObject(16644,284.15859985,1824.38366699,16.74240875,0.00000000,0.00000000,0.00000000); //object(a51_ventsouth) (4)
    
lift5 CreateObject(16644,284.14764404,1821.81982422,16.74240875,0.00000000,0.00000000,0.00000000); //object(a51_ventsouth) (5)
    
lift6 CreateObject(16644,284.11621094,1819.25390625,16.74240875,0.00000000,0.00000000,0.00000000); //object(a51_ventsouth) (6)
    
inner CreateObject(2928,226.57365417,1872.25463867,13.97562408,0.00000000,0.00000000,270.00000000); //object(a51_intdoor) (1)
    
chiefdoor CreateObject(2951,233.58753967,1822.88452148,6.41406250,0.00000000,0.00000000,90.00000000); //object(a51_labdoor) (3) 



Re: [PAWNO][WARNING]204-symbol is assigned a value that is never used: - Patrick - 15.01.2014

Ignore them, that warning warns you that you aren't using those variable, leave them like that because you will use it in future, no need to worry about it or if you're bothered about that use new stock.


Re : [PAWNO][WARNING]204-symbol is assigned a value that is never used: - MCZOFT - 15.01.2014

i dont need to worry from server crashes with thoes warning in futur dude ?


Re: [PAWNO][WARNING]204-symbol is assigned a value that is never used: - Brandon_More - 15.01.2014

No, you should be fine. Only thing you will suffer from is the annoyance of Warning showing up everytime you compile. (Annoys me)


Re: Re : [PAWNO][WARNING]204-symbol is assigned a value that is never used: - Patrick - 15.01.2014

Quote:
Originally Posted by MCZOFT
Посмотреть сообщение
i dont need to worry from server crashes with thoes warning in futur dude ?
Nope, It's just a warning that you do not use the variable at the moment, I know that you will need it when using MoveObject function. if the warning bothers you simply add stock, sample code below

pawn Код:
new stock
    ObjectNum1;



Re : [PAWNO][WARNING]204-symbol is assigned a value that is never used: - MCZOFT - 15.01.2014

+rep for advising me

did what you told me , working fine , thanks


Re : [PAWNO][WARNING]204-symbol is assigned a value that is never used: - MCZOFT - 15.01.2014

thanks Brandon_More for helping though