Raised This Month: $ Target: $400
 0% 

register_message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 05-06-2018 , 05:14   register_message
Reply With Quote #1

i use this code without problem but it changes everybody fovs i need to pu (id,...)but it doesnt work what should i do ?

this works
PHP Code:
register_message(get_user_msgid("SetFOV"), "Message_SetFOV");

public 
Message_SetFOV()
{
    new 
fov get_msg_arg_int(1);
    if( 
fov == 90 )
    {
    
        
set_msg_arg_int(0ARG_BYTEiFov);
    }

doesnt work
PHP Code:

register_message
(get_user_msgid("SetFOV"), "Message_SetFOV");

public 
Message_SetFOV(id)
{
    new 
fov get_msg_arg_int(1);
    if( 
fov == 90 )
    {
    
        
set_msg_arg_int(idARG_BYTEiFov);
    }

undead52 is offline
 



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 04:37.


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