This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

pwf script mod

Old posts that have not been replied to for several years.
Locked
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

pwf script mod

Post by Rav^4u »

Hiya been playing with another script.. the pwf script (cs pickup)

All working fine and have managed to add server side control aswell. The format of the topic in the channel of boring :D

In the script this parts tells what to message:

putserv "PRIVMSG $pwf_pickupchan :[pwf_txt teams1] $pwf_playernumber/$pwf_maxpl

and the format of pwf_txt teams1 is:

set pwf_reply(teams1) "2 Currently :3"

Now thats the boring part I want this format (just an example)

14,1[7«0 Pickup 7»14]14,1[7«0 Map to be played: de_dust :D 7»14]

When I change to it the script no longer works.. i think the "«" is the problem. Any idea how to resolve this?

Thanks for any help
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

The problem is more likely your use of [ and ]. They have special meaning in Tcl. Try putting a \ in front of any open brackets [ (like: \[blah blah]).
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Post by Rav^4u »

Thanks for that.. tried it but i doesnt initialize the language and whole script is dead :(

hmm
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Hi, I deleted that post because it was way too long and it got cut off anyway with none of the useful information (pwf_txt, pwf_reply) shown. I suggest you post only the part of the script that you changed to make it stop working. First paste the original, then your version. Also, a link to the entire file would be good.

Based on what you've shown so far, it looks like pwf_reply(teams1) isn't the only variable you have to change. If you want it to all appear on one line like you have, you'll have to combine the putserv statements into one and add all your formatting there.
Locked