Raised This Month: $ Target: $400
 0% 

invalid expression at switch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-23-2009 , 09:21   Re: invalid expression at switch
Reply With Quote #3

All of the below lines are throwing errors. Once they are all fixed it will compile with 0 errors but you get 14 warnings for unused variables.

PHP Code:
if(((g_punish[i][2]-timp) > 
//should be 
if((g_punish[i][2]-timp) > 
PHP Code:
case 3banPlayer(id,i
//should be 
case 3banPlayer(id
In the below code, action is undefined. You can use random_num(0,10) to play one of the files stored in the actions array randomly.
PHP Code:
if(sound_mode==0
    
client_cmd(id,"spk %s",actions[action])
else 
    
client_cmd(0,"spk %s",actions[action]) 
__________________
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 16:53.


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