Raised This Month: $ Target: $400
 0% 

[TF2] RS mod help?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nergal
Veteran Member
Join Date: Apr 2012
Old 11-15-2013 , 21:49   [TF2] RS mod help?
Reply With Quote #1

I wrote an experimental version of the plugin to get to alpha stage of developments

but I keep getting errors and I cannot find a way to fix :/

PHP Code:
runescape.sp(75) : error 017undefined symbol "IsValidClient"
runescape.sp(113) : error 017undefined symbol "LevelUp"
runescape.sp(175) : error 017undefined symbol "IsValidClient"
runescape.sp(200) : error 017undefined symbol "IsValidClient"
runescape.sp(205) : warning 213tag mismatch
runescape
.sp(226) : error 017undefined symbol "IsValidClient"
runescape.sp(230) : warning 213tag mismatch
runescape
.sp(257) : warning 204symbol is assigned a value that is never used"dist"
runescape.sp(257 -- 269) : warning 217loose indentation
runescape
.sp(269) : error 029invalid expressionassumed zero
runescape
.sp(269) : error 017undefined symbol "SpawnWeapon"
runescape.sp(273) : warning 213tag mismatch
runescape
.sp(274) : error 017undefined symbol "name"
runescape.sp(275) : error 017undefined symbol "index"
runescape.sp(276) : error 017undefined symbol "level"
runescape.sp(277) : error 017undefined symbol "qual"
runescape.sp(279) : error 017undefined symbol "att"
runescape.sp(293) : error 017undefined symbol "client"
runescape.sp(295) : error 017undefined symbol "client"
runescape.sp(296) : warning 213tag mismatch
runescape
.sp(298) : warning 225unreachable code
runescape
.sp(298) : error 029invalid expressionassumed zero
runescape
.sp(298) : warning 221label name "bool" shadows tag name
runescape
.sp(298) : error 017undefined symbol "IsValidClient"
runescape.sp(298) : warning 215expression has no effect
runescape
.sp(298) : error 001expected token";"but found ")"
runescape.sp(298) : fatal error 127too many error messages on one line 
__________________

Last edited by nergal; 11-16-2013 at 00:24.
nergal is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-16-2013 , 04:08   Re: [TF2] RS mod help?
Reply With Quote #2

Hmm... psychic debugging?

OK, lets see how much of it I can guess.
  1. IsValidClient isn't a SourceMod command. If you want one you'll need to write it. Presumably it would include calls to IsClientInGame, IsFakeClient, and/or IsPlayerAlive.
  2. Same with SpawnWeapon, which is probably a wrapper around GivePlayerItem and EquipPlayerWeapon (Note: for TF2, it'd be a wrapper around TF2Items_CreateItem and its related functions and EquipPlayerWeapon)
  3. You're not using new for name, index, level, qual, att, or client.
  4. tag mismatch? I'm going to make a completely wild guess and say you declared a String but forgot the [] after it.
  5. Unreachable code means either an if statement that always evaluates to true or a return statement that always executes is before this line.
  6. label name "bool" shadows tag name means you forgot to put new before it when declaring it.
  7. Expecting token ";" but found "}" means pragma semicolon is turned on but one is missing before the end of a block.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-16-2013 , 05:20   Re: [TF2] RS mod help?
Reply With Quote #3

I'd guess you forget

Quote:
#include
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.
GsiX is offline
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 03:28.


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