SA-MP Forums Archive
News problem - 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: News problem (/showthread.php?tid=461566)



News problem - DAVIDXP - 02.09.2013

Hi all , today i scripted at my FS , and i added new news:
pawn Код:
lista1 = LoadModelSelectionMenu ( "GangsRAS/lista1.cfg"        );
    lista2 = LoadModelSelectionMenu ( "GangsRAS/lista2.cfg"        );
    lista3 = LoadModelSelectionMenu ( "GangsRAS/lista3.cfg"        );
    lista4 = LoadModelSelectionMenu ( "GangsRAS/lista4.cfg"         );
    lista1change = LoadModelSelectionMenu ( "GangsRAS/lista1change.cfg"  );
    lista2change = LoadModelSelectionMenu ( "GangsRAS/lista2change.cfg"  );
    lista3change = LoadModelSelectionMenu ( "GangsRAS/lista3change.cfg"  );
    lista4change = LoadModelSelectionMenu ( "GangsRAS/lista4change.cfg"  );
And it gives me these errors:
pawn Код:
(54) : warning 204: symbol is assigned a value that is never used: "lista1"
(58) : warning 204: symbol is assigned a value that is never used: "lista1change"
(55) : warning 204: symbol is assigned a value that is never used: "lista2"
(59) : warning 204: symbol is assigned a value that is never used: "lista2change"
(56) : warning 204: symbol is assigned a value that is never used: "lista3"
(60) : warning 204: symbol is assigned a value that is never used: "lista3change"
(57) : warning 204: symbol is assigned a value that is never used: "lista4"
(61) : warning 204: symbol is assigned a value that is never used: "lista4change"
But why ? I have all news..


Re: News problem - TonyII - 02.09.2013

It says you never used those symbols for anything, so you can remove them and those warnings won't appear.


Re: News problem - DAVIDXP - 02.09.2013

Quote:
Originally Posted by TonyII
Посмотреть сообщение
It says you never used those symbols for anything, so you can remove them and those warnings won't appear.
I use first code in OnFilterScriptInit


Re: News problem - TonyII - 02.09.2013

Can you show me?


Re: News problem - Borg - 02.09.2013

You only load lists. You should show loaded menus to player by
pawn Код:
ShowModelSelectionMenu(playerid, ListID, header_text[], dialogBGcolor = 0x4A5A6BBB, previewBGcolor = 0x88888899 , tdSelectionColor = 0xFFFF00AA);
and hide by
pawn Код:
HideModelSelectionMenu(playerid);