Raised This Month: $ Target: $400
 0% 

Compiler - error 088


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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