count objects - 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: count objects (
/showthread.php?tid=635873)
count objects -
Loinal - 15.06.2017
Hello, in my gamemode i have include "Maps" and i created it in the includes folder and inside it, it has dynamic objects i can count them onside the inc but when i try to add the count code to the gamemode it doesn't count why?
Re: count objects -
Sew_Sumi - 15.06.2017
Show how you've included it in the include, but cannot get it into the gamemode...
Re: count objects -
Loinal - 15.06.2017
Quote:
Originally Posted by Sew_Sumi
Show how you've included it in the include, but cannot get it into the gamemode...
|
i want it to show at irc and settings for irc is in the gamemode.
Re: count objects -
Sew_Sumi - 15.06.2017
Show code, or no help... Simple.
Re: count objects -
Loinal - 15.06.2017
Quote:
Originally Posted by Sew_Sumi
Show code, or no help... Simple.
|
code of what?
Re: count objects -
Sew_Sumi - 15.06.2017
Quote:
Originally Posted by Loinal
code of what?
|
Code of how you expect to have the objects counted... Stop posting up threads with little-no attempt to even make it easy for people to help you...
Re: count objects -
Loinal - 16.06.2017
Quote:
Originally Posted by Sew_Sumi
Code of how you expect to have the objects counted... Stop posting up threads with little-no attempt to even make it easy for people to help you...
|
PHP Code:
format(string,sizeof(string),"** 0,4Loaded %d objects from the file Maps", CountDynamicObjects());
Ok i have that on the gamemode when the bots join the channel
and have a file in includes named Maps
at top
PHP Code:
#include <Maps>
Re: count objects -
Lbaker - 16.06.2017
You Cant Count maps like this, you can create function which will, read CreateObjects And Coords from file and then loads it.
Re: count objects -
Sew_Sumi - 16.06.2017
Quote:
Originally Posted by Loinal
PHP Code:
format(string,sizeof(string),"** 0,4Loaded %d objects from the file Maps", CountDynamicObjects());
Ok i have that on the gamemode when the bots join the channel
|
print that to the log to see if it's shown. It could just be that it's not fully 'in' when it tries showing it.