Raised This Month: $ Target: $400
 0% 

Moneyblock Action, help please!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
matsi
Thinkosaur
Join Date: Sep 2006
Old 09-28-2012 , 13:33   Re: Moneyblock Action, help please!
Reply With Quote #2

You have two booleans on that function.

Code:
ActionMoney(id, ent) {     if ( cs_get_user_team(id) == CS_TEAM_T )     {         if ( !g_cash_used[id] )         {             emit_sound(id, CHAN_STATIC, g_sound_money, 1.0, ATTN_NORM, 0, PITCH_NORM);             new property[5];             GetProperty(ent, 1, property);                         cm_set_user_cash(id, cm_get_user_cash(id) + str_to_num(property));             cm_cash_used[id] = true;                         set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2);             show_hudmessage(id, "You got %i more Money!", str_to_num(property));         }     } }

Use one of them not both. Either create new bool:g_cash_used[ 33 ]; or use that cm_cash_used[ .. ];

( You get that error because you haven't created g_cash_used )
__________________

Accepting all kinds of requests via private message.

Last edited by matsi; 09-28-2012 at 13:34.
matsi 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 08:21.


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