Bad Textdraw after GMX
#8

Quote:
Originally Posted by Basssiiie
Посмотреть сообщение
GMX isn't actually that bugged, it's just that people don't know what it actually does.

It actually only calls "OnGameModeExit" in your gamemode, reconnects all players, goes to the next gamemode in server.cfg (if there are multiple), opens the next or same gamemode and calls "OnGameModeInit". Things like destroying textdraws or removing vehicles have to be done by yourself in OnGameModeExit, if you want them to be removed. They will stay in your server otherwise. (Although, the variables where their IDs are saved, are reinitialized!)

Also, Filterscripts aren't touched when GMX-ing.
Quote:
Originally Posted by Babul
Посмотреть сообщение
if you want to run an executable, use the Execute plugin, iam using it to simply untar any of my uploaded files.
Quote:
Originally Posted by Jikesh
Посмотреть сообщение
The textdraw ID's are most probably messed up.

Define them like this:

pawn Код:
new Text:gMyText = Text:INVALID_TEXT_DRAW; // for  Global Textdraw
//and
new PlayerText:gMyPlayerText[MAX_PLAYERS] = {PlayerText:INVALID_TEXT_DRAW, ...}; //  Player Textdraw
This will solve your problem for sure
Quote:
Originally Posted by Babul
Посмотреть сообщение
may we have a look on how you declare (create) the textdraws, i.e, where the returned ID of each textdraw gets saved? like
Код:
WelcomeTD[0]=CreateTextDraw(blabla)
make a command which pronts out all textdraws' id, and compare them again after a gmx. if the numbers (IDs) are messed up, you need to reconsider your textdraw stuff..

opening files is possible with the native samp functions, but i suggest you to have a look at the FileManager plugin
Thanks all, REP ++ for some...
Reply


Messages In This Thread
Bad Textdraw after GMX - by FlashBlitz - 05.11.2012, 13:52
Re: Bad Textdraw after GMX - by Babul - 05.11.2012, 14:01
Re: Bad Textdraw after GMX - by FlashBlitz - 05.11.2012, 14:18
Re: Bad Textdraw after GMX - by Jikesh - 05.11.2012, 15:39
Re: Bad Textdraw after GMX - by Babul - 05.11.2012, 18:29
Re: Bad Textdraw after GMX - by Jochemd - 05.11.2012, 19:43
Re: Bad Textdraw after GMX - by Basssiiie - 05.11.2012, 22:27
Re: Bad Textdraw after GMX - by FlashBlitz - 06.11.2012, 08:11
Re: Bad Textdraw after GMX - by flake50 - 06.11.2012, 11:04
Re: Bad Textdraw after GMX - by Mark™ - 06.11.2012, 11:13

Forum Jump:


Users browsing this thread: 3 Guest(s)