Raised This Month: $ Target: $400
 0% 

Server Crashes from Plugin[URGENT]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NiQu
Veteran Member
Join Date: Nov 2009
Old 03-12-2010 , 13:10   Server Crashes from Plugin[URGENT]
Reply With Quote #1

Hi, im trying to make a plugin and when i open the shop for it and go to weapon chance and buy extra ammo for usp the server crashes.

IMG of crash: http://data.fuskbugg.se/skalman01/problem.bmp

Ive checked a few logs and see no errors in there.

The Menu Handler for USP Extra ammo:
PHP Code:
        case 4:
        {
            if ( 
cs_get_user_team(id) == CS_TEAM_T )
            {
                if ( 
USPExtraLevelT[id] < )
                {
                    if ( 
PlayerDollar[id] > get_pcvar_num(USPExtraCost2) )
                    {
                        if ( 
PlayerDollar[id] < get_pcvar_num(USPExtraCost2) )
                        {
                            
F_Print(id"You dont have enough money to buy this item!")
                            return 
PLUGIN_HANDLED;
                        }
                        new 
price4 get_pcvar_num(USPExtraCost2
                        new 
pricediff4 get_pcvar_num(USPExtraCost2_Diff);
                    
                        
F_Print(id"You bought Extra Bullet(USP) level %i"USPExtraLevelT[id] + 1);
                        if ( 
USPExtraLevelT[id] == )
                        {
                            
PlayerDollar[id] -= get_pcvar_num(price4);
                        }
                        if ( 
USPExtraLevelT[id] == )
                        {
                            
PlayerDollar[id] -= get_pcvar_num(price4) + pricediff4;
                        }
                        
USPExtraLevelT[id] += 1;
                    }
                    else
                    {
                        
F_Print(id"You dont have enough money to buy this item!");
                        return 
PLUGIN_HANDLED;
                    }
                }
            }
            else
            {
                
F_Print(id"You have to be Counter-Terrorist to buy this item!");
            }
        } 
Can anyone see anythign wrong in there that might cause the server to crash?
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu 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:37.


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