AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   "melee weap check" help (https://forums.alliedmods.net/showthread.php?t=115718)

slipvyne 01-16-2010 03:39

"melee weap check" help
 
Solved.

berni 01-16-2010 06:14

Re: "melee weap check" help
 
  • 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.

slipvyne 01-16-2010 06:26

Re: "melee weap check" help
 
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


All times are GMT -4. The time now is 17:43.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.