Raised This Month: $ Target: $400
 0% 

Compile errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 02-06-2010 , 13:16   Compile errors
Reply With Quote #1

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 012invalid function callnot a valid address
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : war
ning 215expression has no effect
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : err
or 001expected token";"but found ")"
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : err
or 029invalid expressionassumed zero
// C:\Documents and Settings\nick\Desktop\compiler1\infinite-nades.sma(16) : fat
al error 107too 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 ... 
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
 



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 07:24.


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