Quote:
Originally Posted by undead52
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?
__________________