Hello. I have a problem with the cs_get_user_money...
Code:
PHP Code:
public Showlifes( id ) {
new szMoney = cs_get_user_money(id);
set_hudmessage( 0, 128, 0, 0.04, 0.71, 0, 2.5, 2.5, 0.5, 0.5, 3 );
if( g_Lifes[ id ] > 0 )
ShowSyncHudMsg( id, g_iHudSync2, "%L", id, "DR_LIFE_COUNT", g_Lifes[ id ], szMoney);
else
ShowSyncHudMsg( id, g_iHudSync2, "%L", id, "DR_LIFE_NO" );
set_task( 0.8, "Showlifes", id );
}
Lang:
PHP Code:
DR_LIFE_COUNT = You have %i lifes & %s Money.
Error:
PHP Code:
L 11/10/2011 - 21:24:45: [CSTRIKE] Invalid player 3
L 11/10/2011 - 21:24:45: [AMXX] Displaying debug trace (plugin "dr.amxx")
L 11/10/2011 - 21:24:45: [AMXX] Run time error 10: native error (native "cs_get_user_money")
L 11/10/2011 - 21:24:45: [AMXX] [0] dr.sma::Showlifes (line 583)
Hope someone can help me.