AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [stock] with AMX_ERR_* (solved) (https://forums.alliedmods.net/showthread.php?t=167943)

schmurgel1983 09-22-2011 07:36

[stock] with AMX_ERR_* (solved)
 
hi, is it possible to making stock's with AMX_ERR_* ?

Code:

stock get_blabla(id)
{
    if (id > 32)
    {
        log_error(AMX_ERR_BOUNDS, "[bla] out of bounds (%d).", id)
        return -1;
    }
}

thats only a sample..

its for a include file :)

jim_yang 09-22-2011 08:53

Re: [stock] with AMX_ERR_*
 
you have already got your answer
http://www.amxmodx.org/funcwiki.php?go=func&id=823

schmurgel1983 09-22-2011 09:05

Re: [stock] with AMX_ERR_* (solved)
 
thanks

ConnorMcLeod 09-22-2011 13:26

Re: [stock] with AMX_ERR_* (solved)
 
If you are not in a dynamic native, consider http://www.amxmodx.org/funcwiki.php?...bort&go=search

schmurgel1983 09-22-2011 18:05

Re: [stock] with AMX_ERR_* (solved)
 
Thanks Connor, solved :)


All times are GMT -4. The time now is 19:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.