View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-07-2018 , 14:20   Re: [FAQ]armoury_entity
Reply With Quote #14

Quote:
Originally Posted by PRoSToTeM@ View Post
weaponbox too.
Kinda unrelated, this tutorial is about armoury_entity, why should I mention that weaponbox can have multiple weapons? It's mentioned in the proper place: https://forums.alliedmods.net/showthread.php?t=261464

Quote:
Originally Posted by PRoSToTeM@ View Post
Maybe better to throw an error? Who will check returned value? (almost always no one checks them)
It's the coder job to properly check for return values. He gets burned once, then gets burned twice and finally he learns to look for the returned value.
__________________
HamletEagle is offline