[Solved] squares in motd text
I am currently developing a plugin that uses the players frags to determine if their
a DMer. So The plugin compiles correctly with no errors. When testing the plugin i discovered an error, No one had any frags, so noone was on the motd yet, the only thing displayed was: Code:
Nick: DMs:to bring up the motd (!dmer) It came up like this: Code:
Brit Jamerson [] []I am currently getting a Screenshot of what it looks like. But i was also wondering another thing, (Sorry for the multiple ?'s) a) How do you add spaces in motd's? b) How do you change the title of a motd besides the name of you server.? |
Re: square boxes in motd text
You format message twice..
First time you set it with NIck: and DM's: and then you completely overwrite it with the data.. The best way I can think of would be to set a global string like this.. Code:
(with whatever formatting you want as well) Then remove the first format so you only have a format in the loop and change it to look like... Code:
|
Re: square boxes in motd text
Oh i see. So like this:
Code:
EDIT: That does not compile; Code:
/home/groups/amxmodx/tmp3/text1fs4pv.sma(45) : error 003: declaration of a local variable must appear in a compound block |
Re: squares in motd text
i think he means like this:
Code:
|
Re: squares in motd text
1 Attachment(s)
Code:
I also added some html formatting and stuff so it will show all the current server players not just one. |
Re: squares in motd text
Umm i already thought it displayed all the players with +1 frags?
Also, could you explain what the "static" is? EDIT: shouldnt Code:
Code:
|
Re: squares in motd text
EDIT: Doesnt Compile.. :|
|
Re: squares in motd text
No previously it would only display one player.
Every time you run "format" on a string it erases everything that was in there already. So you loop through all the players in the server, writing their details into message and then overwriting it with the next players. It would only ever display the last players info. I used <br> because motd's can be formatted using html. What compile errors are you getting? |
Re: squares in motd text
Code:
Lol im sure you could have fixed it yourself. Was two typos... |
Re: squares in motd text
1 Attachment(s)
I didnt think the motd's could do HTML without GHW's bbcode plugin.
Also. It doesnt display the Nick: + DM's: see attachment below :| So i'm going to just drop you html code parts an see what i get, ill edit my post when i finish. |
| All times are GMT -4. The time now is 10:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.