Help me in my mapping
#1

Im having a dynamic mapping system in game..Whenever i add a object it will be normal and wont shows its id num..but when i restart my server it shows the object id and kinda messy..any way to prevent it?
Reply
#2

Show us a video/screenshot of the issue and post some code
Reply
#3

How are you restarting your server? Manually, or GMX?

If it's GMX, then the problem is when your showing labels, your not updating the object to show the labels, your only applying it. As for when your server restarts, you haven't reset the enum / variable that holds the labels ability to show. So when the server restarts and the objects load in, its checking the variable holding the status of the showing label and showing it.

Simply reset your variables on OnGameModeExit, or what ever function you need to.
Reply
#4

Quote:
Originally Posted by azzerking
Посмотреть сообщение
How are you restarting your server? Manually, or GMX?

If it's GMX, then the problem is when your showing labels, your not updating the object to show the labels, your only applying it. As for when your server restarts, you haven't reset the enum / variable that holds the labels ability to show. So when the server restarts and the objects load in, its checking the variable holding the status of the showing label and showing it.

Simply reset your variables on OnGameModeExit, or what ever function you need to.
Im not tht pro in scripting..Yeah i use /gmx...Can u help me dude? What should i do now?
Reply
#5

Anyone can help me?
Reply
#6

Noone can "assume" what your problem is, post some screenshots/videos and codes. If you can't provide that, noone will or can provide help.
Reply
#7

Post your createobject command here in a [code] tag..

Also if you downloaded the Gamemode, link me it please and I'll look into it when I have time.
Reply
#8

Maybe you're missing a plugin if you're using them. Or the plugin doesn't match with your includes(.inc).

If this is not the problem post your code down below.
Reply
#9

Quote:
Originally Posted by azzerking
Посмотреть сообщение
How are you restarting your server? Manually, or GMX?

If it's GMX, then the problem is when your showing labels, your not updating the object to show the labels, your only applying it. As for when your server restarts, you haven't reset the enum / variable that holds the labels ability to show. So when the server restarts and the objects load in, its checking the variable holding the status of the showing label and showing it.

Simply reset your variables on OnGameModeExit, or what ever function you need to.
Just adding, this is not needed in gamemodes! The whole AMX gets reloaded, and all variables will revert to default. Simply because ALL variables ALWAYS have a default value when created (0 if nothing specified), they technically cannot keep their values.

Only Filterscripts do not get reloaded during a GMX. Saying so he doesn't have to do unneccessary work in case it was added in the gamemode.

Also, correct initialization is more clever, that has to be done anyway and makes most exiting code obsolete.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)