Raised This Month: $51 Target: $400
 12% 

"melee weap check" help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
slipvyne
Junior Member
Join Date: Jun 2009
Old 01-16-2010 , 03:39   "melee weap check" help
Reply With Quote #1

Solved.

Last edited by slipvyne; 01-17-2010 at 07:33. Reason: I am a noob, and embarrssed that I posted this.
slipvyne is offline
Send a message via AIM to slipvyne Send a message via MSN to slipvyne
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 01-16-2010 , 06:14   Re: "melee weap check" help
Reply With Quote #2

  • int doesn't exist in sourcepawn
  • Use StrEqual to compare Strings, == won't work.
  • The ID's returned by events are UserID's, you need to use GetClientOfUserId to get the clientID.
  • and erm what is weapArray ? Should it be a string array ? Then you need to use " " and prefix it with String:
  • and I wouldn't use GetClientWeapon, read out the weapon property from the event.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

Last edited by berni; 01-16-2010 at 06:19.
berni is offline
slipvyne
Junior Member
Join Date: Jun 2009
Old 01-16-2010 , 06:26   Re: "melee weap check" help
Reply With Quote #3

sigh months of coding java for a school project has taken its tole. and i guess i was looking at the general event not the tf2 event. thanks for the answer and points to clarity. lol
slipvyne is offline
Send a message via AIM to slipvyne Send a message via MSN to slipvyne
Reply



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:14.


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