AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NightClub plugin (https://forums.alliedmods.net/showthread.php?t=89681)

bernzramalho 04-09-2009 11:06

NightClub plugin
 
1 Attachment(s)
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.

alan_el_more 04-09-2009 11:15

Re: NightClub plugin
 
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

bernzramalho 04-09-2009 11:33

Re: NightClub plugin
 
I not understand what you made.

fysiks 04-09-2009 16:41

Re: NightClub plugin
 
Quote:

Originally Posted by bernzramalho (Post 801527)
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.


All times are GMT -4. The time now is 02:25.

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