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] < 2 )
{
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] == 0 )
{
PlayerDollar[id] -= get_pcvar_num(price4);
}
if ( USPExtraLevelT[id] == 1 )
{
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?
__________________