Raised This Month: $ Target: $400
 0% 

set_speak wrong player id problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 06-19-2009 , 15:56   set_speak wrong player id problem
Reply With Quote #1

hi, have some weird problem:

PHP Code:
L 06/19/2009 23:50:27: [ENGINEInvalid player 1
L 06
/19/2009 23:50:27: [AMXXDisplaying debug trace (plugin "my_plugin.amxx")
L 06/19/2009 23:50:27: [AMXXRun time error 10native error (native "set_speak")
L 06/19/2009 23:50:27: [AMXX]    [0my_plugin.sma::client_authorized (line 485
PHP Code:
public client_authorized(client)
{
      
client_cmd(client"-voicerecord");
      
set_speak(clientSPEAK_MUTED);

and client_cmd works fine but set_speak says wrong player id, and same code works fine for client_putinserver
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-19-2009 , 16:04   Re: set_speak wrong player id problem
Reply With Quote #2

Since '1' is a valid player's index, it means that player is not in the game yet.
__________________
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-19-2009 , 16:12   Re: set_speak wrong player id problem
Reply With Quote #3

http://www.amxmodx.org/funcwiki.php?...ized&go=search

Quote:
Quoting am26647, bail said:

"client_putinserver and client_authorized are not guaranteed to happen in any particular order."
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 06-19-2009 , 16:29   Re: set_speak wrong player id problem
Reply With Quote #4

but in admin super gag plugin set_speak is executed in the client_connected and it is before client_athrozed isn't it? or client is in game then he's not then he is again during connecting?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-19-2009 , 16:39   Re: set_speak wrong player id problem
Reply With Quote #5

In AdminSuper, it is executed in client_putinserver()
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 15:29.


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