About "cellmax" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About "cellmax" (
/showthread.php?tid=632195)
About "cellmax" -
TimoXa32 - 10.04.2017
Hello guys.
Yesterday I found system DM arena. There is a function:
PHP код:
GivePlayerWeapon(playerid, 26, cellmax);
As I understand it, cellmax in this function - infinite ammo. But when I shared this system in a Russian forum with my friends, they said "cellmax - in this function it's bad, for infinite ammo is better the number than 10998"
Why number than 10998 better "cellmax"?
Sorry for my English
Re: About "cellmax" -
Vince - 10.04.2017
That seems completely arbitrary. Perhaps it's the number at which the digits disappear from the HUD but if you shoot long enough those numbers will eventually reappear. GTA uses DWORD internally to store ammo so the maximum is 2.1 billion something, something, i.e. cellmax.