Raised This Month: $ Target: $400
 0% 

NightClub plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bernzramalho
New Member
Join Date: Apr 2009
Old 04-09-2009 , 11:06   NightClub plugin
Reply With Quote #1

Hi, I started to work in plugin, Am to try to make nightclub plugin. But I have 13 errors, somebody could continue and correct the errors? And later putting plugin and source here. Please.
Attached Files
File Type: sma Get Plugin or Get Source (nightclub.sma - 169 views - 2.4 KB)
bernzramalho is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-09-2009 , 11:15   Re: NightClub plugin
Reply With Quote #2

PHP Code:
else if (Roll2 == 1)
    {    
        if (
get_prize_flags(PRIZE_BAD)&BAD_PRIZE_NIGHTCLUB)
        {
            if(
get_cvar_num("amx_dice_debug") != 0)
                
log_amx("DEBUG (Advanced Roll the Dice): Roll=[0], Roll2=[%d] <%s>",Roll2User);
            
            
client_print(0,print_chat"[AMXX] <Dice Dealer>  %s is dancing at the NightClub!"User);
            
HasPrize[id][0] = PRIZE_NIGHTCLUB;
                    
            if( 
get_cvar_num("amx_dice_statictimes") == 0)
            {
                
HasPrize[id][1] = random_num(8,14);
            }
            else
            {
                
HasPrize[id][1] = get_cvar_num("amx_dice_nightclubtime");
            }
                    
            
set_user_rendering(id,kRenderFxGlowShellRed,Green,BluekRenderNormal,16);
            new 
tid[2];
            
tid[0] = id;
            
tid[1] = 1;
            
client_cmd(id"cl_forwardspeed 500");
            
set_task(0.1,"single_knife",0,tid,2,"a",((HasPrize[id][1]+2)*10)-10);
            
emit_sound(id,CHAN_VOICE"misc/blade1.wav"1.0ATTN_NORM0PITCH_NORM);
        }
        else
        {
            
bIsGambling false;
            
Roll2++;
            
bad_prizes(id,Roll2);
                        
            return 
PLUGIN_HANDLED;
        }
    } 
This code is not this in any function
__________________
alan_el_more is offline
bernzramalho
New Member
Join Date: Apr 2009
Old 04-09-2009 , 11:33   Re: NightClub plugin
Reply With Quote #3

I not understand what you made.
bernzramalho is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-09-2009 , 16:41   Re: NightClub plugin
Reply With Quote #4

Quote:
Originally Posted by bernzramalho View Post
I not understand what you made.
He didn't do anything. He just told you that that code is in no function. Also, it doesn't even have the first if() statement.
__________________
fysiks is offline
Reply



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 02:25.


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