Raised This Month: $ Target: $400
 0% 

Compiler - error 088


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Claw
Member
Join Date: Sep 2004
Old 10-19-2007 , 12:55   Compiler - error 088
Reply With Quote #1

Cant seem to figure out whats wrong ^^

Would be thankfull if someone could check my .sma file

Or if you get the same error as me Here's the source:

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

#define TIME_TO_WAIT 5.0

public plugin_init()
{
register_logevent("round_start", 2, "1=Round_Start")
}

public main_func()
{
new players[32], num
get_players(players, num)

new player
for(new i = 0; i < num; i++)
{
player = players[i]

if(random_num(0, 100) <= 0)
{
give_item(player, "weapon_awp")

cs_set_user_bpammo(player, CSW_AWP, 1)
client_print(player, print_chat, "You were lucky, you got a AWP with 1 bullet (5% chance)")
}

if(random_num(0, 100) <= 100)
{
give_item(player, "weapon_fiveseven")
cs_set_weapon_ammo(player, CSW_FIVESEVEN, 0)
cs_set_user_bpammo(player, CSW_FIVESEVEN, 2)
client_print(player, print_chat, "You were lucky, you got a five seven with 2 bullets (5 percent chance)")
}

if(random_num(0, 100) <= 15)
{
give_item(player, "weapon_hegrenade")
client_print(player, print_chat, "You were lucky, you got a hegrenade (15 percent chance)")
}

if(random_num(0, 100) <= 5)
{
give_item(player, "weapon_shield")
client_print(player, print_chat, "You were lucky, you got a shield (5 percent chance)")
}
}
}

public round_start()
{
set_task(TIME_TO_WAIT, "main_func")
}
Attached Files
File Type: sma Get Plugin or Get Source (chance.sma - 129 views - 1.3 KB)
Claw is offline
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 10-19-2007 , 16:26   Re: Compiler - error 088
Reply With Quote #2

post the errors
__________________
yang is offline
Send a message via AIM to yang
Claw
Member
Join Date: Sep 2004
Old 10-19-2007 , 16:45   Re: Compiler - error 088
Reply With Quote #3

"Plugin failed to compile! Please try contacting the author.

Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/2/4/5/8/20950.attach(34) : error 088: number of arguments does not match definition

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/20950.amx (compile failed)."
Claw is offline
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 10-19-2007 , 17:03   Re: Compiler - error 088
Reply With Quote #4

cs_set_weapon_ammo ( index, newammo )
index is the weapon entity's index.

thats not how u use that command.


http://www.amxmodx.org/funcwiki.php?...ammo&go=search
__________________
yang is offline
Send a message via AIM to yang
Claw
Member
Join Date: Sep 2004
Old 10-19-2007 , 17:07   Re: Compiler - error 088
Reply With Quote #5

So what do i do to make the fiveseven spawn with only 2 shots?
Claw is offline
yang
Veteran Member
Join Date: May 2005
Location: galoreservers.net
Old 10-19-2007 , 20:21   Re: Compiler - error 088
Reply With Quote #6

http://forums.alliedmods.net/showthr...&highlight=awp

look at that script.
__________________
yang is offline
Send a message via AIM to yang
elpouletorange
Senior Member
Join Date: Oct 2007
Old 10-21-2007 , 12:09   Re: Compiler - error 088
Reply With Quote #7

Try this command: http://www.amxmodx.org/funcwiki.php?go=func&id=208 : its cs_set_weapon_ammo
elpouletorange 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 01:20.


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