Compiler - error 088
1 Attachment(s)
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 :P 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") } |
Re: Compiler - error 088
post the errors
|
Re: Compiler - error 088
"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)." |
Re: Compiler - error 088
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 |
Re: Compiler - error 088
So what do i do to make the fiveseven spawn with only 2 shots?
|
Re: Compiler - error 088
|
Re: Compiler - error 088
Try this command: http://www.amxmodx.org/funcwiki.php?go=func&id=208 : its cs_set_weapon_ammo
|
| All times are GMT -4. The time now is 01:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.