array larger then 2048 byte?
I would like an messages box.
at the moment i use motd (show_motd) new text[2048]; ... show_motd(id, text, "head"); but my text is larger then 2048 and i cant create an array larger 2048. if i use new text[4096]; there is no error at compile time, but if i execute the comand i get error 4 (i think this is buffer overflow??) how i can use show_motd with more than 2048 byte? thx brandy |
try
Code:
|
I think there is a hardcoded limit in how big a HL message can be. Perhaps that what you are reaching.
|
oh right like EKS said HL Engine has a limit on chars
|
:(
oh but thats very small for an message box like motd i spend a lot of time to write this module an now .... there is no solution :( thx brandy |
try adding this under includes
#pragma dynamic 32768 |
i did
and the result is, i get no error msg anymore but in the motd window i can only see the first 2048 byte |
Create a temp file and send everything you want to display to it, then have a client display it, and then remove it, maybe a couple seconds later.
|
Have you considered using an IFrame or referencing the MOTD as an html webpage on some webserver? That should work.
|
@Anpheus
I generate dynamic HTML code and store it in a variable then i use show_motd it works like the stats plugin (/top15 or /rank cmd) @ Johnny Create a temp file and send everything you want to display to it -- OK then have a client display it -- sorry i dont understand this how can i display this file, which cmd (show_motd? this will also not work?) thx brandy |
| All times are GMT -4. The time now is 17:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.