What are my errors? I cant seem to find what im doing wrong.
PHP Code:
#include <amxmodx>
#include <fun>
#include <csx>
#include <fakemeta>
new hasnades[33]
public plugin_init()
{
register_plugin("Infinite-Nades","1.0","r4nDoMz")
}
public client_connect(id)
{
hasnades(id) = 1
}
public client_disconnect(id)
{
hasnades(id) = 0
}
public grenade_throw(id,_,_)
{
if(!hasnades[id] || is_user_alive) {
return
}
new wpid = get_user_weapon(id)
if(wpid == CSW_HEGRENADE) {
return
}
else
{
give_item(id, "weapon_hegrenade")
}
if(wpid == CSW_SMOKEGRENADE) {
return
}
else
{
give_item(id, "weapon_smokegrenade")
}
if(wpid == CSW_FLASHBANG) {
return
}
else
{
give_item(id, "weapon_flashbang")
}
}
PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// infinite-nades.sma
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : err
or 012: invalid function call, not a valid address
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : war
ning 215: expression has no effect
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : err
or 001: expected token: ";", but found ")"
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : err
or 029: invalid expression, assumed zero
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : fat
al error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file C:\Documents and Settings\nick\Desktop\compiler1
\compiled\infinite-nades.amx (compile failed).
//
// Compilation Time: 0.27 sec
// ----------------------------------------
Press enter to exit ...
__________________