count objects
#1

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?
Reply
#2

Show how you've included it in the include, but cannot get it into the gamemode...
Reply
#3

Quote:
Originally Posted by Sew_Sumi
View Post
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.
Reply
#4

Show code, or no help... Simple.
Reply
#5

Quote:
Originally Posted by Sew_Sumi
View Post
Show code, or no help... Simple.
code of what?
Reply
#6

Quote:
Originally Posted by Loinal
View Post
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...
Reply
#7

Quote:
Originally Posted by Sew_Sumi
View Post
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> 
Reply
#8

You Cant Count maps like this, you can create function which will, read CreateObjects And Coords from file and then loads it.
Reply
#9

Quote:
Originally Posted by Loinal
View Post
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)