Problem from SQL to MOTD
Hello. I pull data from SQL. I managed to print. But the lines are missing. I cannot change the "1023-iLen" section in the while loop. This time the plug-in is broken. Can you help me?
Caps: https://i.hizliresim.com/kM47QW.jpg My codes: Code:
/* |
Re: Problem from SQL to MOTD
A MOTD window can't display more than 1536 characters.
Why are you using a function to translate the names? You can directly retrieve the rank name from the "Rank" column in SQL. |
Re: Problem from SQL to MOTD
Quote:
|
Re: Problem from SQL to MOTD
Yes, the ranks from the "RankSystem.ini" file are saved in SQL, in the "Rank" field, so you don't have to manually add them in your .sma file.
The columns saved in SQL are the following: `Player`,`XP`,`Level`,`Next XP`,`Rank`,`Next Rank` |
Re: Problem from SQL to MOTD
But I can't print from SQL. It says "0" or as a number. Is there an error in the variable definitions?
Code:
I used it. But rank comes 0. which %s, %d, %i ? |
Re: Problem from SQL to MOTD
after solving rank number, i think you will get the same problem again in the motd (cuz limit of max chars in there)
if you are using VPS, you can continue with SQLite module for saving and loading stats, but make .php code to show stats (top100 for example)...combine it with xampp with opened port and i think thats it |
Re: Problem from SQL to MOTD
Quote:
Code:
|
Re: Problem from SQL to MOTD
make a webpage that display top15 using data from mysql, and then use the url to show the motd.
for example show_motd(0, "http://www.myurl.com/top15.php","Rank top15") requires knowledge of php and html. |
Re: Problem from SQL to MOTD
how to add it in the first place!!
plz help me i am a new modder |
| All times are GMT -4. The time now is 02:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.