Help with top15 MOTD
Hi all,
I have a stats plugin with sql saving. All good, but I want to improve a little bit the MOTD for /top15 I have 6 columns in the motd, first one is rank number, then nickname and so on. I just want to add either in the same column with rank, or separate column between rank and name, an image for each row of the top15. Like separate image from csgo ranks. Can you please help with what and/or how I should change? Thanks Code:
public GiveTopInformation(FailState, Handle:Query, Error[], Errcode, DataPlayer[], DataSize) |
Re: Help with top15 MOTD
Try something like this, assuming the rank images are named consistently
"https://i.imgur.com/Rank1.png" "https://i.imgur.com/Rank2.png" etc. PHP Code:
|
Re: Help with top15 MOTD
Quote:
Considering that on imgur I cannot chose what the link name can be, I have put the pics into my webhost, named as you said. https://i.imgur.com/ETTcnjS.jpg Showing only 8 rows, I thing is because the Code:
string[3036]But what other option can you give me about the pictures? Because are not shown. Thanks for your support. |
Re: Help with top15 MOTD
Replace each image name in the array with what it is named on the imgur site. When the code runs, it'll format it accordingly -- https://i.imgur.com/RankImg1.png, etc.
MOTD has a character limit of 1536, so you'll need to take that into consideration. PHP Code:
|
Re: Help with top15 MOTD
Quote:
Character limit 1536 is maximum for MOTD? Where does it start the counting and where it ends? So in case of showing issues, maybe I can delete some unnecesary rows/columns/text. Thanks |
Re: Help with top15 MOTD
Excuse me, but maybe I didn't understood correctly.
Where exactly should I put the imgur links ? :? ... You mean like this? https://i.imgur.com/OkjkJUI.jpg LE. I did it, but doesn't work. PHP Code:
Thank again for your support. |
Re: Help with top15 MOTD
I already accounted for the http part in the formatex, the array should have only the image name, as I showed you in the code: dhhwhsh.png
With what you did, the image is getting formated as: "https://i.imgur.com/https://i.imgur.com/TNGjSQ1.png" Which obviously will not work |
Re: Help with top15 MOTD
Quote:
It looks pretty nice for me. https://i.imgur.com/yGLYSxA.jpg Because of the images, not enough string for all top15, but top10 should be ok as well :D |
Re: Help with top15 MOTD
I'd adjust the rank column width, and maybe center points, kills, deaths
|
Re: Help with top15 MOTD
Quote:
|
| All times are GMT -4. The time now is 21:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.