/includes/defines.pwn(1061) : error 010: invalid function or declaration ./includes/defines.pwn(1074) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1075) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1076) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1077) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(107 : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1079) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1080) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1081) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1082) : error 017: undefined symbol "RobStatus" ./includes/defines.pwn(1084) : error 017: undefined symbol "bankvault2" ./includes/defines.pwn(1085) : error 017: undefined symbol "bankvault1" |
// Robbery new bankvault1; new bankvault2; new PlantedC4OnVault[MAX_PLAYERS]; new LEOOnline; |
enum rsInfo { BeingRobbed, // 0 = Not, 1 = Bank RobAmount, // Starts at $0 RobComplete, // Rob Completed RobberID1, // ID of Robber 1 (Required) RobberID2, // ID of Robber 2 (Required) RobberID3, // ID of Robber 3 (Required) RobberID4, // ID of Robber 4 () RobberID5, // ID of Robber 5 () BankReload, // The reload for robbing the bank; Only ONCE per TopOfHour Setup, // Has someone began setting up the robbery? 1 = Yes }; new RobStatus[rsInfo]; |
Did you paste your defines at the top of the script, or at the bottom?
Defines should be at the top of your script, and the function which use them below it. If you have the functions listed first, followed by the defines, then you have the problem where the compiler seems to be unable to find your defines, because it hasn't found them yet. Putting the #include at the bottom of the script has the same effect: defines not found. When including files: Always put #include a_samp first and your plugin includes. These should be followed by any declaration includes (#defines, enums, arrays and global variables). Lastly you should include your functions. |