Raised This Month: $32 Target: $400
 8% 

Bazooka plugin


  
 
 
Thread Tools Display Modes
Author Message
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 04-06-2010 , 08:17   Bazooka plugin
#1

Hey leute,
ich habe hier ein bazooka plugin das ich von weapon mod auf normal umbauen wollte aber bestimmt habe ich sehr viele fehler reingehauen/falsch gecodet und da sind 4 errors..
Könnte es jemand fixxen?

Errors:
Code:
wpn_rocketlauncher.sma(112) : error 017: undefined symbol "id"
wpn_rocketlauncher.sma(112) : warning 215: expression has no effect
wpn_rocketlauncher.sma(112) : warning 215: expression has no effect
wpn_rocketlauncher.sma(112) : error 001: expected token: ";", but found ")"
wpn_rocketlauncher.sma(112) : error 029: invalid expression, assumed zero
wpn_rocketlauncher.sma(112) : fatal error 107: too many error messages on one line
Attached Files
File Type: sma Get Plugin or Get Source (wpn_rocketlauncher.sma - 605 views - 9.7 KB)
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
lgund
Senior Member
Join Date: Jul 2009
Location: Berlin
Old 04-08-2010 , 03:59   Re: Bazooka plugin
#2

Also, der Mod ist immernoch fuer Zombie Plague gebaut. Soll das so sein ? wenn nicht musst du die Zeile rausnehmen bzw. ueberarbeiten.

Code:
#include <zombieplague>
Naja und der Fehler der drinne ist, ist das eine Variable benutzt wird, die nicht vorhanden ist. In der plugin_init sieht es so aus:

Code:
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_forward(FM_Touch, "fwd_Touch")
    register_forward(FM_StartFrame, "fwd_StartFrame")
    
    create_weapon()
}
und dann kommt die das public create_weapon():

Code:
create_weapon()
{
    // Strings
    entity_set_string(id,EV_SZ_viewmodel,"models/v_rpg.mdl")
    entity_set_string(id,EV_SZ_weaponmodel,"models/p_rpg.mdl")
    entity_set_string(id,EV_SZ_worldmodel,"models/w_rpg.mdl")
    
    // Event handlers
    register_event(event_attack1, "ev_attack1")
    register_event(event_attack2, "ev_attack2")
    register_event(event_draw, "ev_draw")
    register_event(event_reload, "ev_reload")
    register_event(event_hide, "ev_hide")
    
    // Floats
    set_float(refire_rate1, 1.0)
    set_float(refire_rate2, 1.0)
    set_float(reload_time, 1.0)
    set_float(recoil1, 3.0)
    set_float(recoil2, 3.0)
    set_float(run_speed, 200.0)
    
    // Integers
    set_integer(ammo1, 1)
    set_integer(ammo2, 3)
    set_integer(bullets_per_shot1, 1)
    set_integer(bullets_per_shot2, 1)
    set_integer(cost, 6000)
    
    return PLUGIN_CONTINUE
}
woher nimmst du die ID ? du musst erstmal die ID bestimmen. Ich hoffe ich konnte dir damit ein bisschen helfen
__________________
You need help on Coding ?? Look on my Homepage: http://First-Coder.de/
You want FUN in Counter-Strike ;) ?? Look on my Community:
http://deathmanns.first-coder.de/
lgund is offline
Send a message via MSN to lgund Send a message via Skype™ to lgund
ExKiLL
Senior Member
Join Date: Nov 2005
Location: Germany
Old 04-16-2010 , 13:15   Re: Bazooka plugin
#3

warum nimmste nicht einfach ein fertiges plugin?

http://forums.alliedmods.net/showthread.php?t=20745
__________________
193.192.59.43:27015 ----- italy ( 20 )
85.25.150.62:27015 ------ sHclachthaus ( 14 )
85.25.150.62:27055 ------ DeathMatch ( 20 )
85.25.150.62:27035 ------ Kreedz Hangout ( 18 )
85.214.100.160:27015 ---- 24/7 full house | **GG + DM** ( 32 )
93.190.64.150:27015 ----- Superhero (12)
ExKiLL is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 04-17-2010 , 02:08   Re: Bazooka plugin
#4

Quote:
Originally Posted by ExKiLL View Post
warum nimmste nicht einfach ein fertiges plugin?

http://forums.alliedmods.net/showthread.php?t=20745
Weil das ein mod ist und ich will eine bazooka für zombie plague umbauen
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-24-2010 , 04:23   Re: Bazooka plugin
#5

Hmm, wie wäre es mit der Suchfunktion?

Naja lass dich nicht dumm sterben

http://forums.alliedmods.net/showthread.php?t=84035
Leon M. is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 04-24-2010 , 04:24   Re: Bazooka plugin
#6

wie wäre es mal wenn du alles genau liest omg -.-
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-24-2010 , 04:29   Re: Bazooka plugin
#7

Quote:
Originally Posted by Russiaboy View Post
wie wäre es mal wenn du alles genau liest omg -.-
Es ist ja für ZP du Holz:

Quote:
[ZP] Extra Item : Bazooka
KadiR is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 04-24-2010 , 04:33   Re: Bazooka plugin
#8

will eine bazooka für zombie plague umbauen

eine = diese die ich hier gepostet habe
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-24-2010 , 04:48   Re: Bazooka plugin
#9

Auf das hast du aber immernoch keine Antwort gegeben:

http://forums.alliedmods.net/showpos...99&postcount=2
KadiR is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 04-24-2010 , 05:18   Re: Bazooka plugin
#10

Quote:
Originally Posted by KadiR View Post
Auf das hast du aber immernoch keine Antwort gegeben:

http://forums.alliedmods.net/showpos...99&postcount=2
schon seit 1 woche fertig mein plugin wie man sieht arbeite ich an meiner Dynamic Deagle..
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
 



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 00:23.


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