PDA

View Full Version : [FilterScript] [FS] TextDraw editor 0.6 - Multiple textdraw support, for proffesional textdraws


Pages : [1] 2

Zamaroht
08/09/2007, 10:11 PM
Zamaroht's TextDraw Editor V0.6

__________________________________________________ ________________________________________________
TextDraw Editor 1.0 has been released! It's fully advised to download this last version from here! (http://forum.sa-mp.com/index.php?topic=143025)
__________________________________________________ ________________________________________________

General Info:
With this FilterScript (or tool), you can make TextDraws very easily from in-game, and export all the lines to a file, so you just copy and past the lines on your script. This means, no more headaches for getting coordinates and so on.
It uses a menu interface, with all things you can do with TextDraws:
http://img517.imageshack.us/img517/4149/samp131ee5.png

Now you can do multiple textdraws and save them to a single file, so you can do complex editions like the above one, you can have up to 95 textdraws.

For Text movement and Size changing, you will use "Crouch"(down), "Jump"(up), "Look Behind"(left) and "Walk"(right) keys. These will move the text very slowly, so you can use the "Sprint" key to move/change size faster. When you finish with it, just press "Action" key (normally TAB) to place the text.

Its very easy to use, even for new people in pawn.

Command List:
/text: Its used for open the Main Menu with the TextDraw functions.
/edit [id]: If you want to edit a textdraw you can alternatively use this command.
/moveup [id] [float amount]: Moves the textdraw in 'id' the amount of units scpecified in 'float amount' to the up.
/movedown [id] [float amount]: Moves the textdraw in 'id' the amount of units scpecified in 'float amount' to the down.
/moveleft [id] [float amount]: Moves the textdraw in 'id' the amount of units scpecified in 'float amount' to the left.
/moveright [id] [float amount]: Moves the textdraw in 'id' the amount of units scpecified in 'float amount' to the right.
/offsetx [id] [float amount]: Sets the textdraw in 'id' in the x position specified in 'float amount'.
/offsety [id] [float amount]: Sets the textdraw in 'id' in the y position specified in 'float amount'.
/height [id] [float amount]: Sets the height of the letter size of the textdraw in 'id' to 'float amount'.
/width [id] [float amount]: Sets the width of the letter size of the textdraw in 'id' to 'float amount'.

Credits:
All the script was done by Zamaroht (me).
Special thanks to:
IJzerenRita for helping me on saving system.
_________________________________________________
Downloads:
Lastest version is 0.6, look in the changelog below for a list of changes between versions
Mirror 1
Seif's Edit - .pwn (Source file) (http://solidfiles.com/d/6Eqc)
v0.6 - .pwn (Source file) (http://solidfiles.com/d/QDHI)
v0.6 - .amx (Compiled and ready-to-use file) (http://solidfiles.com/d/MA3J)

_________________________________________________
Release Notes:
Seif's edit - 20/08/08
Added: Support for key holding.

0.6 - 07/02/2008
Fixed: Bug where the semicolon wasn't added at the end of every line in the saved file
Added: Commands /moveup /movedown /moveright /moveleft /offsetx /offsety /height /width

0.5 - 07/02/2008
Added: Support for multiple textdraws

0.2.5 - 06/02/2008
Added: Support for custom file name, so multiple textdraws can be saved.
Fixed: Change on textdraws letter size, where the changes were huge.
Note: This version was never public released due to the instant start on the develop of 0.5

0.2.1 - 28/10/2007
Fixed: Bug with string line copied to file.

0.2 - 9/09/2007
First public release.
_________________________________________________
Note:
Also, remember that I'm not a pro scripter yet, and script performance could be improved, but that really doesnt matter very much in this kind of script, that are for single/personal/private use, cant ruin a multiplayer experience at all.
Feel free to edit the script acording to your needs, but please keep my name in the credits as 'base script by'

For those who were experiencing server crashes:
This possible happens for gamemode changing/server restarting, not sure why, so just add it to filterscripts line, run the server, dont change anything, and do the textdraw.

Enjoy! :) Coment if it was useful if you use it and if it worked ok ^^

Nissandrifter
09/09/2007, 12:02 AM
Really good :D But the move faster button only makes it go up more. Not go faster. Bug maybe ?

Zamaroht
09/09/2007, 12:24 AM
Well, it is whats suppused to do :p
In further versions just keep pressed the key will move the text, instead of tapping.

Nissandrifter
09/09/2007, 12:43 AM
Well, it is whats suppused to do :p
In further versions just keep pressed the key will move the text, instead of tapping.

Its not supposed to make anything faster and just work on its own ?

Zamaroht
09/09/2007, 12:48 AM
Well, it is whats suppused to do :p
In further versions just keep pressed the key will move the text, instead of tapping.

Its not supposed to make anything faster and just work on its own ?


Exactly, but say "Faster" is more understable than explaining in a console line how it works :p

Spilot
09/09/2007, 03:07 AM
when i try to download it..500 Server Error

Server Error
The following error occurred:

[ code=SERVER_RESPONSE_RESET] The server response could not be read because of an error. Contact your system administrator.
Please contact the administrator.

Towlies
09/09/2007, 03:25 AM
Mirror:

http://towlies.tr3nx.net/filterscripts/TextDrawEditor0.2.pwn
http://towlies.tr3nx.net/filterscripts/TextDrawEditor0.2.amx

Good job on the script. Really is useful and makes life easier.

PS: If anyone needs a little mirror for any SA:MP scripts/plugins contact me via PM and I can mirror/host it for you.

Alejandro
09/09/2007, 03:45 AM
this filterscript is nice! ive always wanted to make textdraws. thanks zamaroht. :D

Gwols
09/09/2007, 07:39 AM
HI

i have 2 errors ^^

TextDrawEditor0.2.pwn(205) : error 017: undefined symbol "TextDrawSetString"

TextDrawEditor0.2.pwn(1217) : error 017: undefined symbol "TextDrawSetString"

2 Errors.

Plz Help.

Regard,Gwols

SylweK
09/09/2007, 01:00 PM
thanks you very good, fs good work

vkmaster
09/09/2007, 02:03 PM
HI

i have 2 errors ^^

TextDrawEditor0.2.pwn(205) : error 017: undefined symbol "TextDrawSetString"

TextDrawEditor0.2.pwn(1217) : error 017: undefined symbol "TextDrawSetString"

2 Errors.

Plz Help.

Regard,Gwols


you do not have latest samp server package

Grove
09/09/2007, 02:11 PM
Nice one! This should be Stickied Imo.

Spilot
09/09/2007, 07:00 PM
Nice one! This should be Stickied Imo.


yeah, it is so useful...

Gwols
10/09/2007, 11:50 AM
i have it, but there come this 2 errors^^

:(

NK_Gangsta
10/09/2007, 12:16 PM
Awesome, thanks mate :roll: :mrgreen:

Zamaroht
10/09/2007, 04:49 PM
i have it, but there come this 2 errors^^

:(


The script is compatible with 0.2.2 server package, you can get it from here (http://sa-mp.com/download.cml)

Ze B@ND!D0
10/09/2007, 08:50 PM
Nice job :) Congratz!

Gwols
11/09/2007, 11:54 AM
i have thx^^

and i have it translate in German

can i post here ???

Zamaroht
11/09/2007, 05:04 PM
I'm trying to keep it in english, think if everybody want to traslate it to a different language :o

Anywa, thanks for the help :)

mikster1
15/09/2007, 07:10 AM
it doesnt seem to be working for me,

i type /text and click on "write text",
i write in the text i want click enter and then my game crashes.

Anyway to fix?

Thanks

Mikster

Zamaroht
15/09/2007, 06:12 PM
Is a client or server crash?
Also be sure that you have the last server release, and you arent using ilegal characters.

mikster1
16/09/2007, 06:40 AM
its a client crash and i have the latest server things.

kc
16/09/2007, 08:16 AM
i type /text and click on "write text",
i write in the text i want click enter and then my game crashes.


I have the same problem. I double checked to see if I was entering illegal characters by writing 'lol' it still crashed my client :s

EDIT: I have 0.2.2 server package as well

Zamaroht
17/09/2007, 01:08 AM
Try it using a blank gamemode (open pawn, select new, compile). Just run the blank gamemode + this filterscript, nothing more, and tell me how did it went, I use it that way and never crashed...

Ruby159
17/09/2007, 06:37 AM
really good :D

but....
at text size and then "look behind" does not work so the text cant smaller if it is big :P

Ruby

mikster1
17/09/2007, 04:37 PM
Still Not Working :'(

kaisersouse
04/10/2007, 04:41 PM
Remove your other filterscripts from server.cfg. Only way I could make it work for me.

killer57
05/10/2007, 10:36 AM
PLEASE :'(


i have 4 errors :

error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

when i compile :'(

Hax
05/10/2007, 03:46 PM
Very nice script!!
You could add more Letter sizes, the smallest one is too big

;)

dafel2
06/10/2007, 01:09 PM
why i crash all the time when i type text and press enter and i crash :(

killer57
06/10/2007, 05:03 PM
and for my errors?

Zamaroht
20/10/2007, 09:53 PM
Try using the compiled script if you cant compile it by yourself, make sure you are using the last compiler

K-Fish
20/10/2007, 10:22 PM
Great filterscript right here! VERY useful, it makes something that's a pain-in-the-ass very easy. Awesome release, THANKS!

sKy
21/10/2007, 02:05 PM
thx man !
ill use it for sure!

Alejandro
21/10/2007, 02:06 PM
Seems cool!

Is there any way to make the textdraw only be there when in skin selection?


you destroy the textdraw when the player spawns.

Zamaroht
21/10/2007, 05:01 PM
Seems cool!

Is there any way to make the textdraw only be there when in skin selection?


you destroy the textdraw when the player spawns.


As Alejandro said, use TextDrawShowForPlayer in OnPlayerRequestClass, and use TextDrawHideForPlayer in OnPlayerSpawn

fiordas
25/10/2007, 05:33 PM
Not working for me :( , it compiles fine but when i run server i get this message in console: Run time error 20: "Invalid index parameter <bad entry point>" . Server runs but when i go to server it crash. And the Mode is showing as Unknow. Please help !

mabako
25/10/2007, 05:36 PM
"bad entry point" says your gamemode does not contain the following code

main( )
{
}

that has infact nothing to do with your server crashes.

fiordas
25/10/2007, 06:19 PM
mabako ]
"bad entry point" says your gamemode does not contain the following code

main( )
{
}

that has infact nothing to do with your server crashes.


So you say that i forgot to put { or } somewhere ?

Zamaroht
25/10/2007, 06:46 PM
Not working for me :( , it compiles fine but when i run server i get this message in console: Run time error 20: "Invalid index parameter <bad entry point>" . Server runs but when i go to server it crash. And the Mode is showing as Unknow. Please help !


Thats an error with the gamemode, try to use a blank one, just clicking new and compile

kaisersouse
25/10/2007, 06:49 PM
mabako ]
"bad entry point" says your gamemode does not contain the following code

main( )
{
}

that has infact nothing to do with your server crashes.


So you say that i forgot to put { or } somewhere ?


You ABSOLUTELY have to have a main routine in your scripts.

main()
{
}

Put that right below all of your defines, etc.

[GM]The_Don
25/10/2007, 07:30 PM
Dude thank you so much :D

that really helped me out and it is Very useful ...

thx bro

Zamaroht
28/10/2007, 06:04 AM
For those who were experiencing server crashes:
This possible happens for gamemode changing/server restarting, not sure why, so just add it to filterscripts line, run the server, dont change anything, and do the textdraw.

Cheers

nate660
28/10/2007, 07:30 AM
Just used this Filterscript for my Current version at the bottom of my script took me less than 4 minutes, if i would have done that by myself it could have took over an half hour


Great Release man,

cmg4life
31/10/2007, 04:55 PM
looks nice :)

Satalone
12/11/2007, 02:20 AM
W8 i didn't get it i puted it do my Filter script and press complete and now wat ? i got my AMX file when i go in game i do /text and nothing come up ;)

Zamaroht
12/11/2007, 08:48 PM
Edit your server.cfg file (with notepad) so it looks something like this:


echo Executing Server Config...
lanmode 0
rcon_password xxx
maxplayers 32
port 7777
hostname Server Name
gamemode0 lvdm 1
filterscripts TextDrawEditor0.2.1
announce 1
query 1
weburl www.sa-mp.com
anticheat 0

arnoldziux
12/11/2007, 09:45 PM
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(27) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(102) : error 017: undefined symbol "CreateMenu"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(102) : warning 213: tag mismatch
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(103) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(104) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(105) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(106) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(107) : error 017: undefined symbol "CreateMenu"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(107) : warning 213: tag mismatch
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(108) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(109) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(110) : error 017: undefined symbol "CreateMenu"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(110) : warning 213: tag mismatch
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(111) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(112) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(113) : error 017: undefined symbol "CreateMenu"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(113) : warning 213: tag mismatch
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(114) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(115) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(116) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(117) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(118) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(119) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(120) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(121) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(122) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(123) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(124) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(125) : error 017: undefined symbol "CreateMenu"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(125) : warning 213: tag mismatch
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(126) : error 017: undefined symbol "AddMenuItem"
C:\Users\ARNAS\Desktop\New Folder (2)\filterscripts\text.pwn(127) : error 017: undefined symbol "AddMenuItem"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


:o :o :o :o WTF ?
Can Any1 Tell Me Whats Wrong ? :o

Zamaroht
13/11/2007, 01:07 AM
Have you edited any single line or deleted any } ?
If you didnt, then download the newest server package (linux (http://eu.littlewhitey.com/samp022svr.tar.gz); windows (http://eu.littlewhitey.com/samp022server.win32.zip))

Satalone
13/11/2007, 01:31 AM
yo can i add more than one Text becouse i have problem to add seccond one :o

Zamaroht
13/11/2007, 04:26 PM
You cant do that at this version. You can do your 1st textdraw, save it, minimize, copy the textdraw.txt file from scriptfiles to somewhere else, maximize, do the second textdraw and save it again.

Satalone
13/11/2007, 09:29 PM
yeah bu this is all Goes in pwn file after i did that? cuz i did first Text then i made it
and now i am making second one and it is in TextDraw.txt and when i go there i copy all stuff and i am posting it ... but it is not coming on on game ;)

Daz
14/11/2007, 08:04 AM
doesn't let me go left or right.

-.-

what buttons are to go left + right?

Craze
14/11/2007, 05:38 PM
Erm, the text doesn't even appear for me, neither can I move it.. :s

Zamaroht
17/11/2007, 06:08 PM
Sorry, havent been at home these last days.


yeah bu this is all Goes in pwn file after i did that? cuz i did first Text then i made it
and now i am making second one and it is in TextDraw.txt and when i go there i copy all stuff and i am posting it ... but it is not coming on on game ;)


Do what the file says in the commants (//), use TextDrawShowForPlayer and TextDrawShowForAll whenever you need to show them and TextDrawHideForPlayer and TextDrawHideForAll whenever you need to hide them


doesn't let me go left or right.

-.-

what buttons are to go left + right?


"Look Behind"(left) and "Walk"(right) keys. In default config, it should be Numpad 1 for left and Alt for right


Erm, the text doesn't even appear for me, neither can I move it.. :s


Write /text when starting. If it doesnt work, does at least a message appear in console when connecting saying "Write /text for start" or something like that?

Invisible
25/01/2008, 10:22 PM
When in game with this gamemode with the code i dont see the text in game why?


Textdraw = TextDrawCreate(20.0,425.0,"FreakMaster");
TextDrawUseBox(Textdraw,1);
TextDrawBoxColor(Textdraw,0xffffff00);
TextDrawTextSize(Textdraw,0.000000,0.000000);
TextDrawAlignment(Textdraw,0);
TextDrawBackgroundColor(Textdraw,0x000000ff);
TextDrawFont(Textdraw,3);
TextDrawLetterSize(Textdraw,0.5,1.5);
TextDrawColor(Textdraw,0x6DC5F3FF);
TextDrawSetOutline(Textdraw,1);
TextDrawSetProportional(Textdraw,1);
TextDrawSetShadow(Textdraw,4);
TextDrawShowForPlayer
TextDrawShowForAll


NVM fixed the prob thanx for the nice script good job 8)

[KeE]V8MANIAC
06/02/2008, 06:24 PM
Perfect! May I kiss ya? kiddin'. :D

Zamaroht
07/02/2008, 06:05 AM
Version 0.5 released with multiple textdraws support!

You can now have up to 95 textdraws in the screen at the same time and save them all in a single file. Also you can now select a name for the file so don't worry anymore abour losing your previous textdraw when saving a new one, here is a example screen of what you can do in a few minutes:

http://img517.imageshack.us/img517/4149/samp131ee5.png

Go to the first page for the download links

MaTrIx4057
07/02/2008, 09:52 AM
Fix this thingy.

Textdraw0 = TextDrawCreate(219.000000,165.000000,"Wasted")
TextDrawAlignment(Textdraw0,0)
TextDrawBackgroundColor(Textdraw0,0x000000ff)
TextDrawFont(Textdraw0,0)
TextDrawLetterSize(Textdraw0,2.099999,3.500000)
TextDrawColor(Textdraw0,0xffffffff)
TextDrawSetOutline(Textdraw0,1)
TextDrawSetProportional(Textdraw0,1)

Thats what i got when saved but it doesnt add ; this thingy. It is TextDrawSetProportional(Textdraw0,1) but should be TextDrawSetProportional(Textdraw0,1);

schbaggo
07/02/2008, 12:49 PM
awesome
love you

luxeon
07/02/2008, 01:50 PM
cool ! i love you ! :mrgreen: :mrgreen: :mrgreen:


,Luxeon

Zamaroht
07/02/2008, 05:45 PM
Fix this thingy.

Textdraw0 = TextDrawCreate(219.000000,165.000000,"Wasted")
TextDrawAlignment(Textdraw0,0)
TextDrawBackgroundColor(Textdraw0,0x000000ff)
TextDrawFont(Textdraw0,0)
TextDrawLetterSize(Textdraw0,2.099999,3.500000)
TextDrawColor(Textdraw0,0xffffffff)
TextDrawSetOutline(Textdraw0,1)
TextDrawSetProportional(Textdraw0,1)

Thats what i got when saved but it doesnt add ; this thingy. It is TextDrawSetProportional(Textdraw0,1) but should be TextDrawSetProportional(Textdraw0,1);


Fixed now in 0.6, also added commands /moveup /movedown /moveright /moveleft /offsetx /offsety /height /width

Go to the first page for get 0.6

Numhaken
07/02/2008, 06:38 PM
Thats the owntai, want a mirror Zam?

Zamaroht
07/02/2008, 06:42 PM
Thats the owntai, want a mirror Zam?


Yes sure

MaTrIx4057
07/02/2008, 06:44 PM
Anyways this awesome FS

Numhaken
07/02/2008, 06:44 PM
Mirror -
http://www.crazyhost.info/download.php?file=468TextDrawEditor.rar

juraj
07/02/2008, 07:21 PM
nic tam nejde....aj ked vim ze mi nerozumite 8)

Zamaroht
07/02/2008, 07:41 PM
nic tam nejde....aj ked vim ze mi nerozumite 8)


What? Keep english please :)

Numhaken
07/02/2008, 08:55 PM
Damn this script really owns, I made a few textdraws with it for my server, so are you gonna make any updates? :mrgreen:

Zamaroht
07/02/2008, 09:28 PM
Damn this script really owns, I made a few textdraws with it for my server, so are you gonna make any updates? :mrgreen:


Possibly I'll be adding custom colors on a future version, but don't have a date on when that will be lol

MartÝn26
07/02/2008, 11:48 PM
I cant move the text to the left or right.. and i tryied all the keys ( i already saw the daz┤ post but it dont work...)

NVM fixed :P

Zamaroht
08/02/2008, 12:14 AM
SN4k3 3y3s ]
I cant move the text to the left or right.. and i tryied all the keys ( i already saw the daz┤ post but it dont work...)

NVM fixed :P


Also you can use /moveleft and /moveright in case you have any problem :)

juraj
09/02/2008, 09:47 AM
rikam ze to blbne hlavne box .. anglicki to neumim rict :idea:

.....box is wrong.....and other thing too

Zamaroht
09/02/2008, 11:32 AM
rikam ze to blbne hlavne box .. anglicki to neumim rict :idea:

.....box is wrong.....and other thing too


I don't undestand what you first said, and box isn't wrong, it just starts by the left of the screen, if you have the text in the middle of the screen for example, you just have to size it to the right when you are asked too, and it firts perfect. And what other thing?

aGroupers
09/02/2008, 11:45 AM
Great work :)

Zamaroht
09/02/2008, 10:37 PM
Great work :)


Thanks :)

By the way, if someone experiences some "double textdraw" issues please tell me, because I had this problem in 0.5, but I think I fixed it with some tweaks in 0.6, but not sure, I tested 0.6 and didn't have this problem, but if you have it please tell me. With double textdraw I mean that you for example select a textdraw for move and the old position of the textdraw stucks there and you can't move it nor anything.

Yeatric
10/02/2008, 11:35 AM
Nice, added on our server :P

Lordy
12/02/2008, 03:33 PM
Nice filterscript, this will come in very handy for me... thanks zammy...

michael2572
13/02/2008, 07:04 AM
Fabulous script.

With that out of the way, my one (1!!) complaint is: For the sake of mother merry teresa...PLEASE make the keys brain-friendly...as in WASD instead of other random keys.

Zamaroht
13/02/2008, 12:25 PM
Fabulous script.

With that out of the way, my one (1!!) complaint is: For the sake of mother merry teresa...PLEASE make the keys brain-friendly...as in WASD instead of other random keys.


Well, actually when you crouch you are going "down" in the space, when you jump, you go "up" in the space, "look behind" gives an idea of backwards, walk, well... and sprint key gives an idea of faster. I wasn't sure how to work with WASD if it was possible, so I preffered to use this mapping.

Tornado
13/02/2008, 10:28 PM
Fabulous script.

With that out of the way, my one (1!!) complaint is: For the sake of mother merry teresa...PLEASE make the keys brain-friendly...as in WASD instead of other random keys.


Well, actually when you crouch you are going "down" in the space, when you jump, you go "up" in the space, "look behind" gives an idea of backwards, walk, well... and sprint key gives an idea of faster. I wasn't sure how to work with WASD if it was possible, so I preffered to use this mapping.

You have to use GetPlayerKeys(playerid,keys,updown,leftright); to make it work with WSAD, or arrows in my case. Put it inside a repeating timer, and after that check for keys pressed, also inside a timer.
KEY_UP and KEY_DOWN should be checked like this if(updown == KEY_UP) or if(updown == KEY_DOWN).
KEY_LEFT and KEY_RIGHT like this if(leftright == KEY_LEFT) or if(leftright == KEY_RIGHT).
Other keys, should like this if(keys == KEY_WHATEVER), example if(keys == KEY_JUMP).
Also with timer and GetPlayerKeys, you can just hold the button, instead of pressing and releasing.

Zamaroht
14/02/2008, 12:44 AM
Fabulous script.

With that out of the way, my one (1!!) complaint is: For the sake of mother merry teresa...PLEASE make the keys brain-friendly...as in WASD instead of other random keys.


Well, actually when you crouch you are going "down" in the space, when you jump, you go "up" in the space, "look behind" gives an idea of backwards, walk, well... and sprint key gives an idea of faster. I wasn't sure how to work with WASD if it was possible, so I preffered to use this mapping.

You have to use GetPlayerKeys(playerid,keys,updown,leftright); to make it work with WSAD, or arrows in my case. Put it inside a repeating timer, and after that check for keys pressed, also inside a timer.
KEY_UP and KEY_DOWN should be checked like this if(updown == KEY_UP) or if(updown == KEY_DOWN).
KEY_LEFT and KEY_RIGHT like this if(leftright == KEY_LEFT) or if(leftright == KEY_RIGHT).
Other keys, should like this if(keys == KEY_WHATEVER), example if(keys == KEY_JUMP).
Also with timer and GetPlayerKeys, you can just hold the button, instead of pressing and releasing.


Cool, thanks for the info, I will have it in count for the next version. :)

mini_tomo_2
14/02/2008, 01:12 AM
Your reasoning, while understandable and slightly logical, made my head hurt :P

Although very nice script, been using it a bit for my server.

Francis[French]
14/02/2008, 02:30 AM
But I got over it & did some cool stuff:
http://img128.imageshack.us/img128/8742/samp358pd5.png
Lol:

http://i208.photobucket.com/albums/bb289/francismori7/sa-mp-151.png

EDIT: Bug, I made another textdraw. Problem is that Textdraw2, which is the one numerating rules, appears at the bottom, at the same place of my credit's one. When I hide Textdraw2, it vanishes. Help!

Zamaroht
14/02/2008, 12:49 PM
Francis ]
EDIT: Bug, I made another textdraw. Problem is that Textdraw2, which is the one numerating rules, appears at the bottom, at the same place of my credit's one. When I hide Textdraw2, it vanishes. Help!


Show me an screenshot example, can't finish to understand you :P

Btw, nice pics Andre and Francis, keep them comming :D

Francis[French]
14/02/2008, 12:57 PM
Ok:

It does THIS when I show the rules at the same time of my credit's one:

http://i208.photobucket.com/albums/bb289/francismori7/sa-mp-152.png

And this is my credit's one:

http://i208.photobucket.com/albums/bb289/francismori7/sa-mp-153.png

Code:


Textdraw = TextDrawCreate(18.000000,424.000000,"~w~[SAP]Francis' ~b~Free For All~w~ V~r~1.1~w~ - ~r~[SAP]Francis");
Textdraw0 = TextDrawCreate(225.000000,114.000000,"~w~[SAP]Francis' FFA ~r~Rules~w~:");
Textdraw1 = TextDrawCreate(160.000000,127.000000,"~r~1) ~w~No cheating, racism, or bitching~n~~r~2) ~w~Don't beg to be admin~n~~r~3) ~w~RESPECT ALL THE PLAYERS!");
Textdraw2 = TextDrawCreate(1.000000,1.000000,"~w~Type ~g~/play~w~ to start playing!");
Textdraw3 = TextDrawCreate(166.000000,159.000000,"~w~Type ~g~/play~w~ to start playing!");
TextDrawUseBox(Textdraw,1);
TextDrawUseBox(Textdraw1,1);
TextDrawBoxColor(Textdraw,0x00000066);
TextDrawBoxColor(Textdraw1,0x00000099);
TextDrawTextSize(Textdraw,626.000000,0.000000);
TextDrawTextSize(Textdraw1,482.000000,0.000000);
TextDrawAlignment(Textdraw,0);
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw,0x000000ff);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawBackgroundColor(Textdraw3,0x000000ff);
TextDrawFont(Textdraw,3);
TextDrawLetterSize(Textdraw,0.700000,2.300000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.399999,1.000000);
TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,0.499999,1.000000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,1.300000,0.000000);
TextDrawFont(Textdraw3,3);
TextDrawLetterSize(Textdraw3,0.599999,1.500000);
TextDrawColor(Textdraw,0xffffffff);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawColor(Textdraw3,0xffffffff);
TextDrawSetOutline(Textdraw,1);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetOutline(Textdraw3,1);
TextDrawSetProportional(Textdraw,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetProportional(Textdraw3,1);
TextDrawSetShadow(Textdraw,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);
TextDrawSetShadow(Textdraw2,1);
TextDrawSetShadow(Textdraw3,1);

And on Connect:


TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw);
RulesAccepted[playerid] = 0;


HELP?

By the way, car is wrecked cause gravity's at 0.001 :D

Zamaroht
14/02/2008, 01:21 PM
Francis ]
Code:


Textdraw = TextDrawCreate(18.000000,424.000000,"~w~[SAP]Francis' ~b~Free For All~w~ V~r~1.1~w~ - ~r~[SAP]Francis");
Textdraw0 = TextDrawCreate(225.000000,114.000000,"~w~[SAP]Francis' FFA ~r~Rules~w~:");
Textdraw1 = TextDrawCreate(160.000000,127.000000,"~r~1) ~w~No cheating, racism, or bitching~n~~r~2) ~w~Don't beg to be admin~n~~r~3) ~w~RESPECT ALL THE PLAYERS!");
Textdraw2 = TextDrawCreate(1.000000,1.000000,"~w~Type ~g~/play~w~ to start playing!");
Textdraw3 = TextDrawCreate(166.000000,159.000000,"~w~Type ~g~/play~w~ to start playing!");
TextDrawUseBox(Textdraw,1);
TextDrawUseBox(Textdraw1,1);
TextDrawBoxColor(Textdraw,0x00000066);
TextDrawBoxColor(Textdraw1,0x00000099);
TextDrawTextSize(Textdraw,626.000000,0.000000);
TextDrawTextSize(Textdraw1,482.000000,0.000000);
TextDrawAlignment(Textdraw,0);
TextDrawAlignment(Textdraw0,0);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw,0x000000ff);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawBackgroundColor(Textdraw3,0x000000ff);
TextDrawFont(Textdraw,3);
TextDrawLetterSize(Textdraw,0.700000,2.300000);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.399999,1.000000);
TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,0.499999,1.000000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,1.300000,0.000000);
TextDrawFont(Textdraw3,3);
TextDrawLetterSize(Textdraw3,0.599999,1.500000);
TextDrawColor(Textdraw,0xffffffff);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawColor(Textdraw3,0xffffffff);
TextDrawSetOutline(Textdraw,1);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetOutline(Textdraw3,1);
TextDrawSetProportional(Textdraw,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetProportional(Textdraw3,1);
TextDrawSetShadow(Textdraw,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);
TextDrawSetShadow(Textdraw2,1);
TextDrawSetShadow(Textdraw3,1);

And on Connect:


TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw);
RulesAccepted[playerid] = 0;


HELP?

By the way, car is wrecked cause gravity's at 0.001 :D


This is what I get in a new script with those lines:

http://img340.imageshack.us/img340/6870/samp176zq4.png

So should be a problem in another part of the script, not sure, but seems that Textdraw and Textdraw0 are messing up.

Francis[French]
14/02/2008, 05:31 PM
So, if I rename the whole textdraw to "something", will it continue? :(

Wow, new bug: Even if I hide "Textdraw", the "Textdraw0" shows at the same place... :s

Zamaroht
14/02/2008, 07:33 PM
You might have messed something up with textdraw0, cause if I put the lines you showed me there I get it perfect.

boylett
14/02/2008, 09:10 PM
i needed a little thing like this :)

Francis[French]
14/02/2008, 09:42 PM
You might have messed something up with textdraw0, cause if I put the lines you showed me there I get it perfect.
Alright, I'll RE-TEST with my code ^^.

Francis[French]
14/02/2008, 09:55 PM
No, still nothing, I don't even know why, anyways, I will restart it :(. I will make it again but all in the same session :P

Zamaroht
14/02/2008, 10:04 PM
Francis ]
No, still nothing, I don't even know why, anyways, I will restart it :(. I will make it again but all in the same session :P


I added the exact lines you gave me in a new script and you see that it worked perfect, try it out yourself, can't help you cause it doesn't seem like a issue of the filterscript, sorry man

Francis[French]
14/02/2008, 10:56 PM
It is not a filterscript, though :P.

Zamaroht
14/02/2008, 11:04 PM
Francis ]
It is not a filterscript, though :P.


[FS] TextDraw editor 0.6 <- filterscript lol :P

Francis[French]
14/02/2008, 11:48 PM
Oh. I though you spoke about my script :s :P.

Adding it in a new Gamemode doesn't work :s.

EDIT: I finally got it working with adding a textdraw with nothing in it, no boxes or anything. NOTHING. Run the script as a FS and all goes ok! :)

Zamaroht
15/02/2008, 12:22 AM
Well, you will have to add:
new Text:Textdraw, Text:Textdraw0, Text:Textdraw1, Text:Textdraw2, Text:Textdraw3;

at top, the first snippet you posted in OnGameModeInit, and the other thing in OnPlayerConnect

Francis[French]
15/02/2008, 01:10 AM
I finally got it working with adding a textdraw with nothing in it, no boxes or anything. NOTHING. Run the script as a FS and all goes ok! :)

Also, suggestion: Make it with a timer, so you can move with the arrows and you can keep the key down instead of tapping ;).

Zamaroht
15/02/2008, 01:15 AM
Francis ]
Also, suggestion: Make it with a timer, so you can move with the arrows and you can keep the key down instead of tapping ;).


Yes, Tornado already suggested it, I will do it for the next version :)

Killerkid
15/02/2008, 01:22 AM
For me the server crashes when anyone talks :|

Zamaroht
15/02/2008, 01:31 AM
Killerkid ]
For me the server crashes when anyone talks :|



For those who were experiencing server crashes:
This possible happens for gamemode changing/server restarting, not sure why, so just add it to filterscripts line, run the server, dont change anything, and do the textdraw.


Remember also that I didn't do the script with support for multiple players, so if someone selects move text, and someone else jumps, the text will move up. I will probably adding support for multiple players too in future versions.

Francis[French]
15/02/2008, 02:52 AM
Francis ]
Also, suggestion: Make it with a timer, so you can move with the arrows and you can keep the key down instead of tapping ;).


Yes, Tornado already suggested it, I will do it for the next version :)
Yay!

PinkFloydLover
15/02/2008, 11:32 AM
Nice one! This should be Stickied Imo.


I second that this is very very very helpful :) :) :)

Luk0r
19/02/2008, 09:26 AM
Oh shit, it supports multiple textdraws now. Nice.

What's the best way to make a large box without any text inside it, or just text at the top? I'm asking this because I don't think I can change the height of the box without using ~n~ repeatedly to space it out.

Larry
19/02/2008, 12:52 PM
Good work. :)

Zamaroht
19/02/2008, 04:10 PM
Oh shit, it supports multiple textdraws now. Nice.

What's the best way to make a large box without any text inside it, or just text at the top? I'm asking this because I don't think I can change the height of the box without using ~n~ repeatedly to space it out.


For do the boxes, I create a new textdraw with some spaces writen inside it, and for change the height I change the letter size ;)

Luk0r
23/02/2008, 10:18 PM
That works great in this new version, looks like you've ironed out a lot of the bugs from the last one. This is probably the most useful filterscript ever created, thanks.

(Also, maybe it should freeze the player each time /text or /edit is called up, not really much of an issue but the player movement whilst navigating around the menus can get annoying).

Zamaroht
24/02/2008, 04:14 PM
(Also, maybe it should freeze the player each time /text or /edit is called up, not really much of an issue but the player movement whilst navigating around the menus can get annoying).


You should be freezed, maybe it can mess up if you have another fs loaded with menus, or the gamemode has.

Luk0r
24/02/2008, 09:20 PM
Hmm, weird

Dmac_91
02/03/2008, 08:10 AM
This makes no sense to me.

Yep, Im a noob with these things. How do i exactly use or even get this thing started? Lol.

Zamaroht
02/03/2008, 02:33 PM
This makes no sense to me.

Yep, Im a noob with these things. How do i exactly use or even get this thing started? Lol.


Open the server.cfg file of your server, and add TextDrawEditor0.6 to the line filtescripts. Start your server and go in, there you will be able to do /text for bring the menu up.

Dmac_91
03/03/2008, 09:15 AM
Got it to work!

Where exactly do i paste the stuff to from the .txt?

Or can it be made to a FS?

zeruel_angel
03/03/2008, 11:16 AM
Hi, I'm zeruel_angel, I'm a moderator in a little spanish forum http://samp.tilens.com/index.php.

I have traslated your INCREIBLE work to spanish (I tried to send you a PM with the link but I coudnt do it)

I don't want any credit or nothing, I just want you permission to post your work in the spanish forum, so other spanish but not english talking people can use it. I have only translated the file, no credits were added or substracted from it.

Please, can I have your permision to post the link to the pastebin in the spanish forum? (proper credits will be given)

Thank you!

See you later!

Zamaroht
03/03/2008, 04:41 PM
Hi, I'm zeruel_angel, I'm a moderator in a little spanish forum http://samp.tilens.com/index.php.

I have traslated your INCREIBLE work to spanish (I tried to send you a PM with the link but I coudnt do it)

I don't want any credit or nothing, I just want you permission to post your work in the spanish forum, so other spanish but not english talking people can use it. I have only translated the file, no credits were added or substracted from it.

Please, can I have your permision to post the link to the pastebin in the spanish forum? (proper credits will be given)

Thank you!

See you later!


Yes sure, and feel free to add yourself to the credits as translator :)

Buena suerte :D

[DMC]BangFlash
20/03/2008, 11:26 PM
Can Somebody tell me where the txt file save ??

Zamaroht
21/03/2008, 01:23 PM
BangFlash ]
Can Somebody tell me where the txt file save ??


It saves in the scriptfiles folder inside your sever folder with the name you specified.

Aerobalance
23/03/2008, 04:02 PM
tbh...

It looks hard to understand :(

How i get box behind chat?

Zamaroht
23/03/2008, 09:36 PM
tbh...

It looks hard to understand :(

How i get box behind chat?


You can create a new textdraw using some spaces characters as text (something like " "), add a box to it, and then start to play with box and letter size for get it how you want it.

Aerobalance
23/03/2008, 09:50 PM
Re-upload please.

Zamaroht
23/03/2008, 10:48 PM
Re-upload please.


Version 0.6 reuploaded, sorry.

Aerobalance
23/03/2008, 11:28 PM
I cant get a box in the chat, how do i do it?

Zamaroht
23/03/2008, 11:32 PM
Create a new textdraw with some spaces as text, then select that textdraw and add it a box, rezising it as much as you want it. Remember to use /text

Aerobalance
23/03/2008, 11:37 PM
How to resize?

Zamaroht
23/03/2008, 11:38 PM
If you look at the chatbox it guides you through all the proccess.

Aerobalance
23/03/2008, 11:40 PM
i made loads of lines like this

l
l
l
l
l
l


Now what?

Exuro
24/03/2008, 12:22 AM
Great script, Used it for textdraws on my roleplay server! Thanks very much

FatherMucker
07/05/2008, 08:31 AM
all right, i made some texts so how do i get em to show? like i want one to show once you connect and stay there
and i want one to show once you are in the player class selection screen and then go away once you select your
character and then one that should show once you selected your character.

i tried to look trough the thread but i didn't really find anything so could someone reply and tell me how to do this.


Textdraw1 = TextDrawCreate(8.000000,433.000000,"LS:Team Deathmatch 1.0");


TextDrawAlignment(Textdraw1,0);


TextDrawBackgroundColor(Textdraw1,0x000000ff);


TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,0.399999,0.899999);


TextDrawColor(Textdraw1,0xff000099);


TextDrawSetOutline(Textdraw1,1);


TextDrawSetProportional(Textdraw1,1);


TextDrawSetShadow(Textdraw2,1);

Yaheli_Faro
07/05/2008, 10:37 AM
all right, i made some texts so how do i get em to show? like i want one to show once you connect and stay there
and i want one to show once you are in the player class selection screen and then go away once you select your
character and then one that should show once you selected your character.

i tried to look trough the thread but i didn't really find anything so could someone reply and tell me how to do this.


Textdraw1 = TextDrawCreate(8.000000,433.000000,"LS:Team Deathmatch 1.0");


TextDrawAlignment(Textdraw1,0);


TextDrawBackgroundColor(Textdraw1,0x000000ff);


TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,0.399999,0.899999);


TextDrawColor(Textdraw1,0xff000099);


TextDrawSetOutline(Textdraw1,1);


TextDrawSetProportional(Textdraw1,1);


TextDrawSetShadow(Textdraw2,1);



TextDrawShowForPlayer(playerid, Textdraw1);

It tells you this in the .txt file... :roll:

FatherMucker
07/05/2008, 11:37 AM
yeah i know that it said something on the .txt but i didn't understand what i meant well thank you for clearing it up for me ;)

Zamaroht
07/05/2008, 04:36 PM
yeah i know that it said something on the .txt but i didn't understand what i meant well thank you for clearing it up for me ;)


You can use TextDrawShowForPlayer(playerid,TextDrawNumber); whenever you want to show it and TextDrawHideForPlayer(playerid,TextDrawNumber); whenever you want to hide it.
So, if you want to show a TextDraw when a player connects, you use TextDrawShowForPlayer in OnGameConnect, and then you can hide it for example in OnPlayerSpawn, so when the player spawns it dissapears. Then use your imagination :)

shitbird
18/06/2008, 04:56 PM
Nvm.

michael2572
18/06/2008, 05:36 PM
Zamaroht, your textdraw editor is fabulous...we'd be constantly reloading with hit-and-miss techniques without it. However, I have some suggestions for your editor:

- Box creation: The initial coordinates for a new box start at 0,0...how about making these coords at least the same as the textdraw's position?

- Multiple-textdraw support:
---> Switching between textdraws is rather labourous, why not separate the textdraw selection menu and the textdraw editing menu into two different commands? Like /select and /edit.
---> Textdraw naming: In the menu, textdraw0 and Textdraw5 aren't exactly easy to remember what they correspond to. You could use the set the string of the textdraw as these names. Not the variable output though, since there could be spaces.
---> Code generation: Is it possible to keep each textdraw to its own block of code? Editing afterwards is a bit difficult because it groups the functions by the functions, rather than the textdraws.

- And I'm sure this has been said before, but why can't we use the arrow keys rather than the sprint/crouch/jump/look back buttons?

Again, thanks for going to the trouble to make this editor...couldn't do without it.

Zamaroht
18/06/2008, 06:06 PM
Zamaroht, your textdraw editor is fabulous...we'd be constantly reloading with hit-and-miss techniques without it. However, I have some suggestions for your editor:

- Box creation: The initial coordinates for a new box start at 0,0...how about making these coords at least the same as the textdraw's position?

- Multiple-textdraw support:
---> Switching between textdraws is rather labourous, why not separate the textdraw selection menu and the textdraw editing menu into two different commands? Like /select and /edit.
---> Textdraw naming: In the menu, textdraw0 and Textdraw5 aren't exactly easy to remember what they correspond to. You could use the set the string of the textdraw as these names. Not the variable output though, since there could be spaces.
---> Code generation: Is it possible to keep each textdraw to its own block of code? Editing afterwards is a bit difficult because it groups the functions by the functions, rather than the textdraws.

- And I'm sure this has been said before, but why can't we use the arrow keys rather than the sprint/crouch/jump/look back buttons?

Again, thanks for going to the trouble to make this editor...couldn't do without it.


Thanks for your suggestions, I'll keep them in mind for the next release :)

Backwardsman97
23/06/2008, 12:20 AM
I cant get any of the commands to work. How exactly do you use them? I type /height 0 1.0 or something like that for example and it always gives me the usage. :s

GiP_YossI
23/06/2008, 04:44 AM
hi,why when i try to write new text
i pressed the T/F6 and write,and it's doen't make's me anything-and when i do /edit 1 it's writing my to complete the first one :( why?

Magor
23/06/2008, 09:18 AM
I found these bugs:

:arrow: 1.


dcmd_width(playerid, params[])
{
new id, Float:amount;
if (!sscanf(params, "df", amount)) SendClientMessage(playerid,0x554466AA,"Usage: /width [textdraw id] [amount (0.0)]");
...


This doesn't work, it allways says "Usage: /width [textdraw id] [amount (0.0)]".

Repaired code:


dcmd_width(playerid, params[])
{
new id, Float:amount;
if (!sscanf(params, "df", id, amount)) SendClientMessage(playerid,0x554466AA,"Usage: /width [textdraw id] [amount (0.0)]");
...


:arrow: The bug is in following commands:


dcmd_offsetx
dcmd_offsety
dcmd_moveleft
dcmd_moveright
dcmd_moveup
dcmd_movedown
dcmd_width
dcmd_height


:arrow: 2. Editing textdraw color doesn't work properly.

There are only a few colors in your script. Create custom colors, for example "/tdcolor [tdid] [color]", where the color will be hex (0x...) or decimal number in "rgba" format ("0x ..." or "0-255 0-255 0-255 0-255").

:arrow: 3. Textdraws doesn't destroy properly.
:arrow: 4. Hard managing textdraws trough menu - menu hides after every action and doesn't show previous menu when pressing enter.
:arrow: 5.

In dcmd_width:


lettersizex[id]+=amount;


Replace with:


lettersizex[id] = amount;


:arrow: 6. Fix some variable probles. Sometimes, it always says "Complete the current operation first" but noone operation is running.

GiP_YossI
23/06/2008, 09:50 AM
hi,why when i try to write new text
i pressed the T/F6 and write,and it's doen't make's me anything-and when i do /edit 1 it's writing my to complete the first one :( why?

anyone?

boylett
23/06/2008, 10:55 AM
works prefect for me, i just use /text and the menus.

mini_tomo_2
26/06/2008, 05:08 PM
Try using it as the only FS with a more or less empty gamemode (only really needs one spawn).

Ignas1337
27/06/2008, 09:59 AM
add somehting like /movefactor for a multipier of speed or something? :)
Great work

Johnny..Boy
10/07/2008, 07:32 PM
it works for me too, perfectly, i will use this fs to make some text draws i made and didn't complete them.... Thanks Dude!
Really nice fs! :D, keep doing like this ;)

Zh3r0
10/07/2008, 07:34 PM
With this,i made some cool TextDraws for my server, Billion of thanks Zamaroht Thanks.

Basss
11/07/2008, 06:34 AM
NICE WORK MAN! ITS VERY USEFUL FOR ME! THNNNNNX ^^

chrisb345
15/07/2008, 07:02 AM
this is very fiddly i wasnt too impressed really

Coscos
21/07/2008, 11:05 PM
It worked very good, it's the best FS to making TextDraw, but I need a help.

I put the lines on my script, but one of them i don't know where to put:

"TextDrawShowForPlayer"

Where i must put it?

And how to put? Only TextDrawShowForPlayer or I must put something more?

sanandreas
29/07/2008, 05:31 AM
this looks really good congratz, just one problem wtf is textdraw and what does it do?

mikster1
03/08/2008, 03:06 PM
Hey Guys,

I Have A Problem.

I enter in my text and then i want to move it, i can move it up,down,right...but not left.

when i try pressing W like it says to move it left it wont move:S

is there any alternatives?

Thanks In Advance

TM

mikster1
03/08/2008, 03:41 PM
Ok Thanks Alot


TM

ғαιιοцт
06/08/2008, 07:18 AM
when i destroy one textdraw, all the textdraws get destroyed, why is that so?

bobofrl
06/08/2008, 07:28 PM
The download link is broken :(

Can you re-upload it?
Thanks in advance :D

jonathanvcruz
18/08/2008, 12:27 AM
i need help i did every thing even put the code that gave me in the gm but its not coming up and wheni edit it does every tyhign fine but the problem is i can get it go to right it only goes left !?? :roll:

jonathanvcruz
19/08/2008, 04:08 AM
i need help i placed it on the gm but it does not appear on the game. when im in game letter wont apper , when i comply with pawno it does everything correct but letter wont come up in game

TehLuis
26/08/2008, 04:15 AM
u cant expand boxes? like make them bigger in length :/

silvan
26/08/2008, 04:37 PM
nice one bro can you add the stuff instead of comments into a type of menu? pls

[*D*]outgear
26/08/2008, 10:44 PM
Zamaroht, can you please check the script, when i make my own text and type in the name of the file i get the message that the file was successfully created in the scriptfiles folder but when i went to scriptfiles folder it was empty :(

EDIT: the problem has been resolved, sorry for wasting your time :lol:

splitx
28/08/2008, 07:24 PM
i cant make a box i dont get it i cant move it or nothing why or how to do?

J3rman_K3ll
29/08/2008, 09:37 AM
Perfect Filterscript

splitx
29/08/2008, 12:05 PM
Perfect Filterscript


No :roll:

i dont get how to make a box becaus i cant make it bigger. i cant move it from left to right and up and down
but i can move text and avery thing but not athe Fu*** box! some one help XD

[DrM]Losi[CL]
03/09/2008, 12:54 PM
Nice work!

cmg4life
03/09/2008, 01:44 PM
maybe u can make it so we can edit sizes , like 0.8 or 0.9 or so on, like if size < 1 then start makin it 0.X until 0.1 ... its cool anyways

ReFuSeR
21/09/2008, 12:02 AM
well, does it save to a scriptfiles?????

EDIT:
ohhh, Nevermind....

it autosaves

VER NICe

EDIT:

this is what happens when I compile it...

C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(462) : warning 217: loose indentation
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(462) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(463) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(464) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(465) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(466) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(467) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(468) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(469) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(470) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(519) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.



what is the problem?

sidhu123
25/09/2008, 07:29 PM
well, does it save to a scriptfiles?????

EDIT:
ohhh, Nevermind....

it autosaves

VER NICe

EDIT:

this is what happens when I compile it...

C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(462) : warning 217: loose indentation
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(462) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(463) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(464) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(465) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(466) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(467) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(468) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(469) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(470) : error 017: undefined symbol "Textdraw1"
C:\Users\RED RANGER.Saucey-PC\Desktop\samp022server.win32\gamemodes\GodFather .pwn(519) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.



what is the problem?




At the top, type in "new Text:Textdraw1;"

And as for the loose indentation, that doesnt really matter :)

error55o
19/10/2008, 08:07 PM
how the hell do I get the text to show?
I want it to show after a player logs in and chooses a character, I get zero error's when compile but alas, I'm still a script noob lol

any one got a code snippet or two they could share?

error55o
19/10/2008, 08:33 PM
thanks for a speeeeeeeedy reply ^_^

error55o
19/10/2008, 08:45 PM
erm, lol, this shows I'm still a noob at this xD

can I have a little help to get this working please ^_^


public OnPlayerSpawn(playerid)
{
SetPlayerTime(playerid, h, minuty);
SetPlayerInterior(playerid,0);
ClearAnimations(playerid);
if(ded[playerid]==1)
{
SetPlayerPos(playerid, dedpos[playerid][0], dedpos[playerid][1], dedpos[playerid][2]);
ded[playerid]=0;
}
SetPlayerWorldBounds(playerid, 6666.6666, -6666.6666, 6666.6666, -6666.6666);
DisablePlayerCheckpoint(playerid);
SetTimerEx("PlayerObjectUpdate", 100, 1, "d", playerid);
Textdraw0 = TextDrawCreate(321.000000,117.000000,"Welcome to the e55o server");
TextDrawShowForPlayer;
TextDrawAlignment(Textdraw0,2);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.100000,5.599998);
TextDrawColor(Textdraw0,0x00ff00ff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
return 1;
}


thanks in advance ^_^

error55o
19/10/2008, 09:45 PM
erm, lol, this shows I'm still a noob at this xD

can I have a little help to get this working please ^_^


public OnPlayerSpawn(playerid)
{
SetPlayerTime(playerid, h, minuty);
SetPlayerInterior(playerid,0);
ClearAnimations(playerid);
if(ded[playerid]==1)
{
SetPlayerPos(playerid, dedpos[playerid][0], dedpos[playerid][1], dedpos[playerid][2]);
ded[playerid]=0;
}
SetPlayerWorldBounds(playerid, 6666.6666, -6666.6666, 6666.6666, -6666.6666);
DisablePlayerCheckpoint(playerid);
SetTimerEx("PlayerObjectUpdate", 100, 1, "d", playerid);
Textdraw0 = TextDrawCreate(321.000000,117.000000,"Welcome to the e55o server");
TextDrawShowForPlayer;
TextDrawAlignment(Textdraw0,2);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,1.100000,5.599998);
TextDrawColor(Textdraw0,0x00ff00ff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
return 1;
}


thanks in advance ^_^

never mind, fixed it but now it wont go away xD

error55o
19/10/2008, 11:21 PM
You're suppose to put that in OnGameModeInit. And Textdraws stick to the screen until you hide/delete them. If you want them to be like a gametext, check my signature.


thanks so very much ^_^ I have want I needed (well close to it :) )

|CrippinBloodDrippin|
20/10/2008, 12:30 AM
I love this filterscript.

Zamaroht
20/10/2008, 03:34 PM
You're suppose to put that in OnGameModeInit. And Textdraws stick to the screen until you hide/delete them. If you want them to be like a gametext, check my signature.

thanks so very much ^_^ I have want I needed (well close to it :) )

You should add the piece of code you added there which you got from the file in OnGameModeInit as Seif said. Then in for example OnPlayerConnect write TextDrawShowForPlayer(playerid,Textdraw0); and in OnPlayerSpawn, write TextDrawHideForPlayer(playerid,Textdraw0);

s0me0ne
20/10/2008, 04:53 PM
good work man

Zamaroht
22/10/2008, 01:21 AM
Thanks everyone for the positive feedback :)

mascii
08/11/2008, 12:15 AM
hi, great FS, can you help me with something?

i have this:

on top:
new Text:Textdraw0;

under gamemodeinit:
Textdraw0 = TextDrawCreate(485.000000,6.000000,"ProKnt - Freeroam");
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,0);
TextDrawLetterSize(Textdraw0,0.499999,1.100000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);

under playerspawn:
TextDrawShowForPlayer(playerid, Textdraw0);


it dosent work :( its not displayed,

please help :s

matt2127
08/11/2008, 01:54 AM
Try it under onplayerconnect

mascii
08/11/2008, 03:05 AM
Try it under onplayerconnect




same thing. :'(

matt2127
08/11/2008, 03:26 AM
Look in my GM Los Santos Rp in my signature there is an example of this FS in there

mascii
08/11/2008, 01:10 PM
i have looked at your GM, i couldn't find anything ...

please help.

MenaceX^
08/11/2008, 01:15 PM
Wow..
That's all what I have to say :)
I will test it soon.

mascii
09/11/2008, 06:49 AM
Wow..
That's all what I have to say :)
I will test it soon.


please test soon.

found the problem. thx

shitbird
16/11/2008, 02:08 PM
The /movedown,left,right,up are bugged. I tried using them, it just says i missed the last 0.0 things, even tho i did /move ID 1.3 or 1.6...

MenaceX^
23/11/2008, 02:34 PM
Wow, Really wow. AMAZING JOB, I donwloaded Seif's edit, It's amazing!

Thank you ALOT!

silvan
25/11/2008, 09:33 AM
hm what's the command for the menu interface?

Headhunter
25/11/2008, 11:07 AM
hm what's the command for the menu interface?

/Text

silvan
25/11/2008, 02:03 PM
tnx

Danut
25/11/2008, 05:25 PM
this looks so nice :lol:

StReeY
25/11/2008, 05:29 PM
PLS HELP

this write save textdraw

Now write a name for the file, which will be saved on scriptfiles folder with .txt extension automatly added. If the file already exists, it will be overwrited without warning.

FUNExtreme
25/11/2008, 09:20 PM
man, ever thought off just doing what it says instaid off posting for something like this

Amit
25/11/2008, 10:46 PM
Wow, very nice and handy filterscript :)

ICECOLDKILLAK8
27/11/2008, 03:14 AM
nice FS

p.s. FUCK ME, i just realised, i looked at ur SS and u must have like 100 ars spawned in the same place, wasnt it like really laggy???

Loyal
27/11/2008, 03:20 AM
Looks great, Very useful :)

ICECOLDKILLAK8
30/11/2008, 05:05 PM
how do i create a box by itself like u have around your text

Zamaroht
30/11/2008, 09:42 PM
how do i create a box by itself like u have around your text


Create a text with empty spaces and then add a box to it.

sanandreas
12/12/2008, 04:51 AM
where does it save to?

[NBG]XxXkranXxX
12/12/2008, 06:06 AM
Scriptfiles.

But when you have finished editing it to your liking you have to /text , more , save or something like that and you have to name it in-game and boom will be in scriptfiles

sanandreas
12/12/2008, 06:29 AM
thanx fellow aussie xD, i think i figured it out! :)

[NBG]XxXkranXxX
12/12/2008, 06:46 AM
np glad to help >:D

sanandreas
12/12/2008, 07:39 AM
damn lol for some reason it doesn't appear ingame :/

[NBG]XxXkranXxX
12/12/2008, 10:11 AM
Do you have

TextDrawHideForPlayer(playerid, Text:text);

public OnPlayerSpawn(playerid)
{
TextDrawShowForAll(Text:text);
return 1;
}

Try that 8)

or

public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Text:text);
return 1;
}

sanandreas
12/12/2008, 12:10 PM
Lol oh, that goes in onPlayerSpawn, I had that in OnGameModeInIt, thx again bro

hipy
25/12/2008, 12:58 PM
Can you change in color and diffrent styles?

Soeren
25/12/2008, 02:22 PM
Thank you very much, I'm using this now and it is very helpful, much easier then searching for the correct Positions ;)

@hipy: Yes, in the menu you can choose "Font" and "Color" too.

[NBG]XxXkranXxX
26/12/2008, 05:59 AM
This is cool but i can never make the text go to the right.

Eragon
26/12/2008, 04:34 PM
Very good script! :P

CAMERON_BANFIELD
04/01/2009, 08:23 PM
TextDrawShowForPlayer(-ForAll)

D:\Servers\samp-server\gamemodes\Jack.pwn(85) : error 017: undefined symbol "ForAll"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Iget that while trying to show the text. I put that in bevcause the text wont show :(

ғαιιοцт
04/01/2009, 08:50 PM
TextDrawShowForPlayer(-ForAll)

D:\Servers\samp-server\gamemodes\Jack.pwn(85) : error 017: undefined symbol "ForAll"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Iget that while trying to show the text. I put that in bevcause the text wont show :(


lol!

use TextDrawShowForAll(Text:mytextdraw);

hamptonin
04/01/2009, 08:54 PM
thanks man this is great

DDaGxXx
04/01/2009, 08:55 PM
Really nice!

HUmmelmann
12/01/2009, 06:39 PM
HI,

can i use this for samp 0.2X?I need it sooooo mutch.

My Problem: I write /text but nothing come...pls help me.

ғαιιοцт
12/01/2009, 07:04 PM
HI,

can i use this for samp 0.2X?I need it sooooo mutch.

My Problem: I write /text but nothing come...pls help me.


yes it works on 0.2X to are you sure the filterscript is loaded?

notec100
13/01/2009, 03:52 AM
Hi there, I am trying to get this to work and it works great until I try to add it into my script. First let me start by saying that I am trying to create a text draw for every game day and when the game day switches then the old textdraw would be destroyed and and the new one with the current day will display. Now for my question, how would I make this possible, when I set everything into the script the first day will display but upon the day change it will remain the same even if I am using destroy and even hide text draw. I really would like to get this down and any help is greatly appreciated. Below is an example of how I have set up the first one please feel free to critique it and let me know where I made the errors. Thank you.
public TimeUpdate()
{
new Text:Textdraw0;
if (worldMinute == 59)
{
worldMinute = 0;
worldHour++;
}
else
worldMinute++;
if (worldHour > 23)
{
worldHour = 0;
worldDay++;
}
if (worldDay > 6)
worldDay = 0;

if (worldDay == 0)
{
Textdraw0 = TextDrawCreate(495.000000,12.000000,"Monday");
TextDrawColor(Textdraw0,0xffffffff);
TextDrawShowForAll(Text:Textdraw0);
}
else if (worldDay > 0)
{
TextDrawDestroy(Text:Textdraw0);
}
return 1;
}
And of coarse I added the new and other info that came with the textdraw save and have tried several different combination's so as I said any help would really help. Once again thanks a lot. When I tried to set it under OnGameModeInIt, the textdraw would not show. But this is the last way I tried before coming for help, and if I want it to display for the world day I would think this is where I would place it being this part of the script deals with the world days. Once again many thanks for any help.

Kieren
13/01/2009, 08:38 AM
Just tried this out now and it's great! :)

Is it normal that the box can't increase in height or is that a problem?

Headhunter
13/01/2009, 09:35 AM
Hi there, I am trying to get this to work and it works great until I try to add it into my script.

What about TextDrawSetString?

notec100
13/01/2009, 10:17 AM
watkijkje╝ ]

Hi there, I am trying to get this to work and it works great until I try to add it into my script.

What about TextDrawSetString?


What do you mean? To be honest I'm very new to the whole textdraw system so I don't fully understand it. I'm not asking anyone to do it for me but more or less give me an example how I may set the textdraws according to the game day and change when the game day changes. But what do you mean about TextDrawSetString? What does that do? Again sorry if I sound stupid but I'll never learn if I don't ask! Thank You :)

HB
13/01/2009, 11:57 AM
Thanks for developing this, I used it. It owns!

Headhunter
13/01/2009, 02:32 PM
What do you mean? To be honest I'm very new to the whole textdraw system so I don't fully understand it. I'm not asking anyone to do it for me but more or less give me an example how I may set the textdraws according to the game day and change when the game day changes. But what do you mean about TextDrawSetString? What does that do? Again sorry if I sound stupid but I'll never learn if I don't ask! Thank You :)


Here is an example:
This will change the day every hour


new Text:Textdraw0;
new day = 1;

public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(495.000000,12.000000,"Monday");
TextDrawColor(Textdraw0,0xffffffff);
SetTimer("TimeUpdate",3600000 ,1);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Text:Textdraw0);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Text:Textdraw0);
return 1;
}

forward TimeUpdate();
public TimeUpdate()
{

if (day == 1)
{
TextDrawSetString(Text:Textdraw0,"Tuesday");
day = 2;
}
if (day == 2)
{
TextDrawSetString(Text:Textdraw0,"Wednesday");
day = 3;
}
if (day == 3)
{
TextDrawSetString(Text:Textdraw0,"Thursday");
day = 4;
}
if (day == 4)
{
day = 5;
TextDrawSetString(Text:Textdraw0,"Friday");
}
if (day == 5)
{
TextDrawSetString(Text:Textdraw0,"Saturday");
day = 6;
}
if (day == 6)
{
TextDrawSetString(Text:Textdraw0,"Sunday");
day = 7;
}
if (day == 7)
{
TextDrawSetString(Text:Textdraw0,"Monday");
day = 1;
}
return 1;
}

notec100
13/01/2009, 06:54 PM
watkijkje╝ ]

What do you mean? To be honest I'm very new to the whole textdraw system so I don't fully understand it. I'm not asking anyone to do it for me but more or less give me an example how I may set the textdraws according to the game day and change when the game day changes. But what do you mean about TextDrawSetString? What does that do? Again sorry if I sound stupid but I'll never learn if I don't ask! Thank You :)


Here is an example:
This will change the day every hour


new Text:Textdraw0;
new day = 1;

public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(495.000000,12.000000,"Monday");
TextDrawColor(Textdraw0,0xffffffff);
SetTimer("TimeUpdate",3600000 ,1);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Text:Textdraw0);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Text:Textdraw0);
return 1;
}

forward TimeUpdate();
public TimeUpdate()
{

if (day == 1)
{
TextDrawSetString(Text:Textdraw0,"Tuesday");
day = 2;
}
if (day == 2)
{
TextDrawSetString(Text:Textdraw0,"Wednesday");
day = 3;
}
if (day == 3)
{
TextDrawSetString(Text:Textdraw0,"Thursday");
day = 4;
}
if (day == 4)
{
day = 5;
TextDrawSetString(Text:Textdraw0,"Friday");
}
if (day == 5)
{
TextDrawSetString(Text:Textdraw0,"Saturday");
day = 6;
}
if (day == 6)
{
TextDrawSetString(Text:Textdraw0,"Sunday");
day = 7;
}
if (day == 7)
{
TextDrawSetString(Text:Textdraw0,"Monday");
day = 1;
}
return 1;
}



Hey bro I wanted to thank you I really appreciated that :) This will help me advance my scripting skills further now! Once again thank you for your help, but I still have one problem.
When you connect it will show monday and then within 3 seconds it disappears and doesn't reappear, and I have set all this into the script as you posted. Any other suggestions to get it to permanently display? Thanks

Headhunter
13/01/2009, 09:13 PM
Weird,
do you have other textdraw's in your gamemode?

watkijkje

notec100
13/01/2009, 09:30 PM
watkijkje╝ ]
Weird,
do you have other textdraw's in your gamemode?

watkijkje


Just a Speedometer and that only applies when you are in the car.. When you exit a car the textdraw becomes hidden.

GORE
13/01/2009, 09:41 PM
and thath will bw there? im mean itt will dont disapierd?

Headhunter
13/01/2009, 09:49 PM
Any other suggestions to get it to permanently display? Thanks


Try this :/ :

new Text:TimeUpdateTD;
new day = 1;

public OnGameModeInit()
{
TimeUpdateTD = TextDrawCreate(495.000000,12.000000,"Monday");
TextDrawColor(TimeUpdateTD,0xffffffff);
SetTimer("TimeUpdate",3600000 ,1);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Text:TimeUpdateTD);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Text:TimeUpdateTD);
return 1;
}

forward TimeUpdate();
public TimeUpdate()
{

if (day == 1)
{
TextDrawSetString(Text:TimeUpdateTD,"Tuesday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 2;
}
if (day == 2)
{
TextDrawSetString(Text:TimeUpdateTD,"Wednesday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 3;
}
if (day == 3)
{
TextDrawSetString(Text:TimeUpdateTD,"Thursday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 4;
}
if (day == 4)
{
day = 5;
TextDrawSetString(Text:TimeUpdateTD,"Friday");
TextDrawShowForAll(Text:TimeUpdateTD);
}
if (day == 5)
{
TextDrawSetString(Text:TimeUpdateTD,"Saturday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 6;
}
if (day == 6)
{
TextDrawSetString(Text:TimeUpdateTD,"Sunday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 7;
}
if (day == 7)
{
TextDrawSetString(Text:TimeUpdateTD,"Monday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 1;
}
return 1;
}

notec100
14/01/2009, 01:28 AM
watkijkje╝ ]

Any other suggestions to get it to permanently display? Thanks


Try this :/ :

new Text:TimeUpdateTD;
new day = 1;

public OnGameModeInit()
{
TimeUpdateTD = TextDrawCreate(495.000000,12.000000,"Monday");
TextDrawColor(TimeUpdateTD,0xffffffff);
SetTimer("TimeUpdate",3600000 ,1);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Text:TimeUpdateTD);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Text:TimeUpdateTD);
return 1;
}

forward TimeUpdate();
public TimeUpdate()
{

if (day == 1)
{
TextDrawSetString(Text:TimeUpdateTD,"Tuesday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 2;
}
if (day == 2)
{
TextDrawSetString(Text:TimeUpdateTD,"Wednesday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 3;
}
if (day == 3)
{
TextDrawSetString(Text:TimeUpdateTD,"Thursday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 4;
}
if (day == 4)
{
day = 5;
TextDrawSetString(Text:TimeUpdateTD,"Friday");
TextDrawShowForAll(Text:TimeUpdateTD);
}
if (day == 5)
{
TextDrawSetString(Text:TimeUpdateTD,"Saturday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 6;
}
if (day == 6)
{
TextDrawSetString(Text:TimeUpdateTD,"Sunday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 7;
}
if (day == 7)
{
TextDrawSetString(Text:TimeUpdateTD,"Monday");
TextDrawShowForAll(Text:TimeUpdateTD);
day = 1;
}
return 1;
}



I'm sure your coding is correct, but I just don't understand why when you join you will see the day for a split couple seconds then it will disappear again. I'm officially stumped lol. I appreciate your help tho I am gonna try some tweaks in my script to see if I can get it Because I would really like to include the days :)

Klid
15/01/2009, 12:00 PM
Suggestion:
Make it so when you choose a background box you can adjust the width and height of it, and also make it so you dont need to enter text inside it to make it show :)

ғαιιοцт
15/01/2009, 03:37 PM
Suggestion:
Make it so when you choose a background box you can adjust the width and height of it, and also make it so you dont need to enter text inside it to make it show :)


you can use the _ character (it's invisible in textdraws)
but it's a good idea if the script does it automatic :D

Xiam1992
20/01/2009, 04:49 PM
I save my Message and than i go out my server than i restart my server and than i come back than is the Text gone.... the name is Welkom.txt that can i see in my scriptfiles map.....

It's a home host maybe that is it (i dont have it 24/7)

Some 1 help me??

Ty en Greetz, Xiam

siLvia
23/01/2009, 08:03 PM
TextDrawShowForPlayer(-ForAll)
What do i replace the "(-forall)" with?

Headhunter
23/01/2009, 09:03 PM
TextDrawShowForPlayer(-ForAll)
What do i replace the "(-forall)" with?

TextDrawShowForPlayer(playerid, Textdraw-name/id);

siLvia
24/01/2009, 02:20 PM
& where do i put that?

Zamaroht
24/01/2009, 04:13 PM
& where do i put that?


Wherever in your script where you want to show the text.

SuperS0nic
06/02/2009, 08:34 PM
How do i make the box around the text larger? it only goes to change the width but not the height??

eXchainZ-FoReVeR
06/02/2009, 08:57 PM
Nice script! Goodjob!!!

ReFuSeR
07/02/2009, 01:23 AM
I use this all the time :)

Mirror:
http://rafhell.com/mirrors/TextdrawEditor.rar

oOChazyBoyOo
08/02/2009, 01:08 PM
yeah i used this realy good

Prieto_Galletini
15/02/2009, 07:30 AM
I hate when ppl say nvm i found the problem damm post post out the problem maybe other ppl have the same problem, like me the textdraw wont show on my server and i make everything it says and i read all the full tread and nothing to solve my problem can some one help me to put this textdraw in the GM

Dark_BasS
15/02/2009, 10:54 AM
Really nice good job man

djdanni
20/02/2009, 05:18 AM
Grate thangs for this woork perfectly and Realy easy to use ;)

pepper
21/02/2009, 06:28 AM
nice!!!!!! i love this

ғαιιοцт
22/02/2009, 05:18 PM
it makes the server crash when you use more than 2 pages of textdraws (in the menu's) :(
i was making a .. some king of painting >< and when i was at the end of page 2, and created another textdraw, the server crashed...

Weirdosport
22/02/2009, 08:11 PM
Would use again without thinking twice. Will recommend to anyone in need of a TextDraw!

Amazing filterscript, many options and no bugs from what i've seen thus far.

Kanji_Suzuki
27/02/2009, 11:07 AM
Nice Work

Streetplaya
27/02/2009, 12:06 PM
There are bugs if you are trying to edit textdraws while more players are on the server.

I edited the script that it will work with more players, PM me if you want it.

sant
28/02/2009, 02:59 AM
Very Nice Job,

Want a mirror?

If anybody wants or needs a mirror just PM me and Ill give you a mirror for free.

Double-O-Seven
07/03/2009, 08:14 PM
This is great! I'm using it!

Thank You very much! :D

Finn
08/03/2009, 07:50 PM
You can't load the textdraws you have been editing before?

Sucks.

Ryhanna
24/03/2009, 11:12 PM
Yep. That's very usefull! :P
n1.

TMNuclear
28/03/2009, 06:10 PM
I dont know how to export it into a file

Typhome
10/04/2009, 01:46 PM
Awesome! Thanks!, but i did done, i go server and this doenst show.. ? what wrong ?

Jese
10/04/2009, 02:58 PM
Awesome! Thanks!, but i did done, i go server and this doenst show.. ? what wrong ?

You have to put it in gm.

Fatboy_Rob
15/04/2009, 04:12 PM
Okay, when I start a text draw, I type in what I want. I type 'Hayden', okay, all fine.
When I then try to do the /movedown or anything like it, it keeps giving me the syntax again.
Usage: /movedown [Textdraw ID] [amount (0.0)]

I try like
/movedown 0 5 - Nothing.

Any help please?

veskosid
10/05/2009, 01:47 PM
Guys when i save my TEXT DRAW WHERE'S GO THE FILE :roll:

[HiC]TheKiller
11/05/2009, 09:44 AM
Samp(directory)/Scriptfiles/

Sajtos
24/05/2009, 08:12 PM
how i can setup this? //You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
//TextDrawDestroy functions to show, hide, and destroy the textdraw.