Raised This Month: $ Target: $400
 0% 

personal plugin coding problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Venomxtinct
Member
Join Date: Nov 2005
Old 01-02-2006 , 11:53  
Reply With Quote #4

hmm also i tried that and came up some new errors that I cant figure out...

Quote:
#include <amxmodx>
#include <engine> //included engine

public check_knife(id) {
if (get_cvar_num("sv_crowbar")!=1)
return PLUGIN_CONTINUE

new llama = read_data(0)
client_print(llama,print_center,"Crowbar Active")
client_cmd(llama,"wait;wait;wait;")
if(llama == CSW_KNIFE)
{
entity_set_string(id, EV_SZ_viewmodel, "models/v_crowbar.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/p_crowbar.mdl")
}
public plugin_precache() //line 17
{
precache_model("models/v_crowbar.mdl")
precache_model("models/p_crowbar.mdl")
}
with errors:
Quote:
/home/users/amxmodx/tmp3/phpEldqEX.sma(17) : error 029: invalid expression, assumed zero
/home/users/amxmodx/tmp3/phpEldqEX.sma(17) : error 004: function "plugin_precache" is not implemented
/home/users/amxmodx/tmp3/phpEldqEX.sma(23) : error 001: expected token: "}", but found "-end of file-"
when i put a } on line 23 it still doesnt work...
Venomxtinct is offline
 



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 15:58.


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