Raised This Month: $ Target: $400
 0% 

register_message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-06-2018 , 15:29   Re: register_message
Reply With Quote #6

Quote:
Originally Posted by undead52 View Post
switched that code but i dont think that is a good code, do you have any good idea ?
Code:
public Message_SetFOV() {     new fov = get_msg_arg_int(1);     if( fov == 90 )     {         new iVault = nvault_open( "FoV" );         new players[32], szNum, szName[32];         get_players(players, szNum)         for ( new i = 0; i < szNum; i++)         {             new id = players[i];             get_user_name(id, szName, 31);             nvault_get( iVault , szName , szDataString , charsmax( szDataString ) );               iFov = str_to_num(szDataString);             set_msg_arg_int(id, ARG_BYTE, iFov);                 }             } }
You cannot do this. This message has only 1 argument so you would always specify 1, never the player id.

What FOV angle are you trying to set if it equals 90?
__________________
Bugsy 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