Raised This Month: $ Target: $400
 0% 

Tag Mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sandurr
Senior Member
Join Date: Aug 2005
Old 11-01-2005 , 06:13   Tag Mismatch
Reply With Quote #1

new Float:porigin[3] = { 88.0, 412.0, -382.0 }

create_ambient( porigin, "barmusic", "10", "80", 8, "misc/bar.wav" )












This gives a 213 :Tag Mismatch, the line from create_ambient
this could be useful:

public create_ambient(porigin[3],targetname[],vol[],pitch[],spawnflags,file[])
{
new ambient = create_entity("ambient_generic")

if(!ambient) return PLUGIN_HANDLED

entity_set_string(ambient,EV_SZ_classname,"am bient_generic")
entity_set_int(ambient,EV_INT_spawnflags,spaw nflags)
entity_set_float(ambient,EV_FL_health,10.0)
entity_set_string(ambient,EV_SZ_targetname,ta rgetname)
entity_set_string(ambient,EV_SZ_message,file)

DispatchKeyValue(ambient,"pitch",pitch)
DispatchKeyValue(ambient,"volstart",vol)
DispatchKeyValue(ambient,"pitchstart",pitch)
DispatchSpawn(ambient)

new Floatrigin[3]
origin[0] = float(porigin[0])
origin[1] = float(porigin[1])
origin[2] = float(porigin[2])

entity_set_origin(ambient,origin)

return PLUGIN_HANDLED
}
Sandurr 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 23:59.


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