SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 21/10/2017, 11:20 AM   #21
darkhunter332
Huge Clucker
 
darkhunter332's Avatar
 
Join Date: Aug 2013
Posts: 276
Reputation: 41
Default Re: Textdraw Editor By Gammix

Yeya!
Another Professional script from Gammix!
darkhunter332 is offline   Reply With Quote
Old 05/11/2017, 03:25 PM   #22
[WSF]ThA_Devil
Gangsta
 
[WSF]ThA_Devil's Avatar
 
Join Date: Sep 2010
Location: United Kingdom
Posts: 661
Reputation: 55
Default Re: Textdraw Editor By Gammix

It seems like for some reason, when I do boxes, which are centered and the letter size x = 0 it doesn't save the project. When I just have the text, it saves it without a problem.

Also getting these warnings:
Code:
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: String buffer overflow.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.
sscanf warning: sscanf specifiers do not require '' before them.

Recompiled with latest Zeex's compiler in compatability mode and it seems to have worked. Still the warnings persist though.

After some textdraw designing with it, I found out that it tends to "not care" at points whether it is a player or global textdraw when exporting. It could be a problem of me having mixed both global & player ones.

I've noticed it is caused by this: groupTextDrawData[i][0].
It's not always the case that the global one is going to be in 0th index, so perhaps keeping a track where the singe global textdraw is wouldn't be too bad.

What I find odd is the optimisation used in this, which actually breaks things (in the case stated above)
You have used 'playerTextdrawsCount' and 'globalTextdrawsCount' to define limits when exporting, which works if you work with different types seperately. If you mix them, it's gonna go wrong, because both are stored in the same array.

Code:
else if (playerTextdrawsCount > 1) {
			    for (new x; x < playerTextdrawsCount; x++) {

Here's a fixed version by me:
https://pastebin.com/zypXFXnq

Not the cleanest fix, but does the job.

Also, to those not using Zeex's compiler, remove the #pragma compat 1 line.
__________________
Quote:
Originally Posted by Shinobu View Post
Somebody save me, I am not a server.

Last edited by [WSF]ThA_Devil; 06/11/2017 at 11:34 AM.
[WSF]ThA_Devil is offline   Reply With Quote
Old 08/11/2017, 09:42 AM   #23
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,766
Reputation: 840
Default Re: Textdraw Editor By Gammix

Quote:
Originally Posted by [WSF]ThA_Devil View Post
...
I didn't find any flaw in my export, but i didn't tested it fully, so i can't tell. But give me an example of where it bugs out, so i can look to it. And what have you changed in the code, you are not using github so its hard to distinguish.


Update v1.2:
- Bug fix: Duplicating textdraw groups now have check for same name conflicts so SQLite tables not being created resulting data loss is no longer an issue.
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:


Last edited by Gammix; 08/11/2017 at 11:29 AM.
Gammix is offline   Reply With Quote
Old 15/11/2017, 11:45 PM   #24
maikeel
Little Clucker
 
Join Date: May 2017
Posts: 28
Reputation: 0
Default Re: Textdraw Editor By Gammix

sprites doesnt work?

maikeel is offline   Reply With Quote
Old 15/11/2017, 11:54 PM   #25
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,766
Reputation: 840
Default Re: Textdraw Editor By Gammix

Box size is 0. So how would you see them!
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is offline   Reply With Quote
Old 16/11/2017, 12:25 AM   #26
maikeel
Little Clucker
 
Join Date: May 2017
Posts: 28
Reputation: 0
Default Re: Textdraw Editor By Gammix

Quote:
Originally Posted by Gammix View Post
Box size is 0. So how would you see them!
oh sorry lmao, thanks!
maikeel is offline   Reply With Quote
Old 03/01/2018, 10:07 AM   #27
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,766
Reputation: 840
Default Re: Textdraw Editor By Gammix

Update v1.3:
- Fixed bug in removal of project name from record file.
- Updated to latest dini2 version.
- Amount of groups and textdraws limit is increased by default!
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is offline   Reply With Quote
Old 18/01/2018, 09:15 AM   #28
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,766
Reputation: 840
Default Re: Textdraw Editor By Gammix

Update v1.3.2(and 1.3.1):
- Major exporting bug fix (mixing for player and global textdraw array)
- Now visibility of groups is saved in database (they hide when loading when it was set to off)
- Exporting improved a bit!
- Code improved a bit!
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is offline   Reply With Quote
Old 24/01/2018, 01:07 PM   #29
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 865
Reputation: 325
Default Re: Textdraw Editor By Gammix

So, it would be nice if you provide the links to all the dependencies (like easyDialog, TimestampToDate, dini2 and even zcmd and sscanf2) in the first post.

Updated: And I also got some warnings in the server logs:
PHP Code:
[16:26:31sscanf warningsscanf specifiers do not require '' before them
It seems that it begins to happen when I created a new project and I think this is the cause:
PHP Code:
[line 1861] if (sscanf(inputtext"%s["#MAX_PROJECT_NAME"]", name)) { //We don't need to have % before the specifier, isn't it? 
Good work though!
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker

Last edited by OstGot; 24/01/2018 at 01:37 PM.
OstGot is offline   Reply With Quote
Old 24/01/2018, 01:17 PM   #30
Sayed3b
Banned
 
Join Date: Aug 2017
Location: Egypt
Posts: 34
Reputation: 13
Default Re: Textdraw Editor By Gammix

Nice Job
Sayed3b is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Created a textdraw from Zamaroht's Textdraw Editor JeevanJyothish Scripting Help 1 26/08/2014 07:10 AM
Moving a textdraw on the y-axis doesn't work. (TextDraw Editor) AndySedeyn Scripting Help 1 14/06/2014 03:50 PM
[FilterScript] [FS] TextDraw editor 0.6 - Multiple textdraw support, for proffesional textdraws Zamaroht Filterscripts 369 20/01/2013 03:46 PM


All times are GMT. The time now is 08:45 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.