View previous topic :: View next topic |
Author |
Message |
Mr. Satan has entered the game!
Joined: 30 Apr 2015
|
Posted: Sat May 09, 2015 5:58 pm Post subject: GetAmmoCapacity |
|
|
When I try to call this function I get the error message: PCD_GETAMMOCAPACITY is not implemented yet. Is there another file I have to include, other zcommom.acs? |
|
Back to top |
|
|
Zedek has entered the game!
Joined: 10 Mar 2013 Location: Tijuana, México
|
Posted: Sat May 09, 2015 10:07 pm Post subject: |
|
|
No, as the error says, Zdaemon hasn't implemented that function. |
|
Back to top |
|
|
Mr. Satan has entered the game!
Joined: 30 Apr 2015
|
Posted: Sun May 10, 2015 1:42 am Post subject: |
|
|
Is there another function/property I can use that returns the same value? |
|
Back to top |
|
|
Zedek has entered the game!
Joined: 10 Mar 2013 Location: Tijuana, México
|
Posted: Sun May 10, 2015 2:04 am Post subject: |
|
|
i made this function....looks dumb i know
Code: |
function int getammocapacity2(str ammo)
{
int current=checkinventory(ammo);
giveinventory(ammo,10000);
int cap = checkinventory(ammo);
takeinventory(ammo,1000);
giveinventory(ammo,current);
return cap;
} |
paste it somewhere in your code and test it.
call it like the original but instead :
getammocapacity2("AMMO NAME HERE"); |
|
Back to top |
|
|
|