Advertisements with more than 1 line!
Hi!
I already tried to do it by myself ( I am a c++ programmer ) but I can't do it :( -> I want the plugin ad_manager.sma to support advertisements with more than 1 line f.e. by using \n to start a new line. Problem: Some people already asked the coder of the plugin but he doesn't add this function. He said he will rewrite the plugin but nothing happens. This is the code of the output function. I think the only thing to do is a query to look up if the message contains a \n and if there is one in it to break the line at this point by splitting it in more messages (max 5). Here is a C++ example. I hope its now not so much work for you. PS: I have no idea if something like this.. ..I coded.. is possible! Code:
//Here is the String with the complete MessageCode:
public displayAd(params[]) |
Re: Advertisements with more than 1 line!
I found something but I cant get this things together working... PLS HELP!!!
The code checks for spaces! -> StringVar[a]==32 (SPACE); I need (StringVar[a]==92 && StringVar[a+1]==110) <- "\n" Code:
// StringVar = "map sq1 linebattle" |
Re: Advertisements with more than 1 line!
Hey I can compile it do you think it will work?
Code:
public displayAd(params[]) |
Re: Advertisements with more than 1 line!
Quote:
Put some debug messages and see. |
Re: Advertisements with more than 1 line!
I am not a amxx programmer ;)
how can I put some debug messages in it - that will help me very much! |
Re: Advertisements with more than 1 line!
i take log_amx("this is a debug message"); because i test it localy and see the server console on my desktop..
You can also put client_print(0, print_chat, "this is a debug message"); in the code which prints in chat... greetz regalis |
Re: Advertisements with more than 1 line!
thx for help!
|
| All times are GMT -4. The time now is 10:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.