22.07.2009, 23:53
So, I want to make a menu to make a video so I don't want to do something with it. I only want to open it.
But I've got an error in the AddMenuItem. And a warning of idk
Here is my pawn code so far:
The Error:
Can somebody please help?
But I've got an error in the AddMenuItem. And a warning of idk
Here is my pawn code so far:
Код:
#include <a_samp> new Menu:levelmenu; public OnGameModeInit() levelmenu = CreateMenu("levelmenu", 2, 55.0, 200.0, 100.0); AddMenuItem(levelmenu, 0, "Dam"); AddMenuItem(levelmenu, 0, "Facility"); AddMenuItem(levelmenu, 0, "Runway"); AddMenuItem(levelmenu, 0, "Surface"); AddMenuItem(levelmenu, 0, "Bunker"); AddMenuItem(levelmenu, 0, "Silo"); AddMenuItem(levelmenu, 0, "Frigate"); AddMenuItem(levelmenu, 0, "Surface"); AddMenuItem(levelmenu, 0, "Bunker"); AddMenuItem(levelmenu, 0, "Statue"); AddMenuItem(levelmenu, 0, "Archives"); AddMenuItem(levelmenu, 0, "Streets"); AddMenuItem(levelmenu, 0, "Depot"); AddMenuItem(levelmenu, 0, "Train"); AddMenuItem(levelmenu, 0, "Jungle"); AddMenuItem(levelmenu, 0, "Control"); AddMenuItem(levelmenu, 0, "Caverns"); AddMenuItem(levelmenu, 0, "Cradle"); AddMenuItem(levelmenu, 0, "Aztec"); AddMenuItem(levelmenu, 0, "Egyptian");
Код:
(9) : error 021: symbol already defined: "AddMenuItem" (7) : warning 204: symbol is assigned a value that is never used: "levelmenu"