Raised This Month: $51 Target: $400
 12% 

UserMessage VGUI url broken in CSS?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sn4k3
Senior Member
Join Date: Nov 2005
Old 01-16-2011 , 18:18   UserMessage VGUI url broken in CSS?
Reply With Quote #1

i tried many ways, but all i got is a blank page

i tried:

Code:
www.google.com
http://google.com
google.com
none of those URL's works

PHP Code:
// VGUI_TYPE (1 = special, 2 = url, )
// Sends a VGUI menu to player.
// You must free MRecipientFilter object your self
bool VGUI(LIB_MRECIPIENTFILTER_CLASS &mrfint VGUI_TYPE, const char *title, const char *text, ...)
{
    if(!
mrf.GetRecipientCount()) return false;
    
int vguiIndex GetMsgNum("VGUIMenu");
    if(
vguiIndex == -1) return false;
    
    
bf_write *pWrite VAR_IFACE_ENGINE->UserMessageBegin((IRecipientFilter *) &mrfvguiIndex);
    if(!
pWrite) return false;
    
MULTIARGS(text);
    
pWrite->WriteString("info"); // the HUD message itself
    
pWrite->WriteByte(1);
    
pWrite->WriteByte(3); // I don't know yet the purpose of this byte, it can be 1 or 0
    
pWrite->WriteString("type"); // the HUD message itself
    
pWrite->WriteString(LIB_STRING_CLASS::StrFormat("%i"VGUI_TYPE)); // the HUD message itself
    
pWrite->WriteString("title"); // the HUD message itself
    
pWrite->WriteString(title); // the HUD message itself

    
pWrite->WriteString("msg"); // the HUD message itself
    
pWrite->WriteString(string); // the HUD message itself
    
VAR_IFACE_ENGINE->MessageEnd();
    return 
true;

on last CSS, is it broken?

thanks
sn4k3 is offline
Send a message via MSN to sn4k3
psychonic

BAFFLED
Join Date: May 2008
Old 01-16-2011 , 19:37   Re: UserMessage VGUI url broken in CSS?
Reply With Quote #2

WORKSFORME

In SM, but same concept for sending MOTD with raw VGUIMenu usermessage, http://forums.alliedmods.net/showthread.php?p=1387386
psychonic is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode