HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

DisplayTimedTextToPlayer doesn't wokr

09-30-2006, 06:36 PM#1
refl3ction
Collapse JASS:
Custom script:   call DisplayTimedTextToPlayer(GetPlayersAll(), 0.52, -1.00, 2.00, "|c7777aa"Forgotten Vale RPG |nCreated by refl3ction"|r")

i searched through the forums to find a way to put text in the center of the screen and came up with the custom script

but when i go to save it comes up with an error..
first it was expected a name
then i put GetPlayersAll() in
now it says expected a '

How do I go about fixing this little problem?
09-30-2006, 06:40 PM#2
Vexorian
Use "|c7777aa\"Forgotten Vale RPG |nCreated by refl3ction\"|r"
09-30-2006, 06:44 PM#3
refl3ction
to no avail

i put it in and it stated Invalid Argument Type (force)
09-30-2006, 06:45 PM#4
shadow1500
GetPlayersAll returns a force:
Collapse JASS:
function GetPlayersAll takes nothing returns force
but DisplayTimedTextToPlayer takes a player as first argument:
Collapse JASS:
native DisplayTimedTextToPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing

you must replace the GetPlayersAll() call in that script with something that returns a player to make it work. Replacing it with GetLocalPlayer() will show it to the local player (so basically all players) and it seems to be what you want.
09-30-2006, 06:48 PM#5
refl3ction
Got it thanks to help from both vex and shadow

thanks :)

reppage

Post 2:

NVM
figured it out and about to test it

Edited by Blade.dk. Reason: Double posting is not allowed.
10-01-2006, 08:37 AM#6
BertTheJasser
Plx dl JassCraft or a similar program, so you can fix such simple problems yourself
10-01-2006, 03:23 PM#7
refl3ction
ill have to do so
but 1 quick question
does |n work in the code? (|n is a linebreak in like tooltips)
10-01-2006, 03:23 PM#8
refl3ction
ill have to do so
but 1 quick question
does |n work in the code? (|n is a linebreak in like tooltips)