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

GetCmdArg help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maxis010
Senior Member
Join Date: Jun 2009
Old 08-19-2010 , 14:13   GetCmdArg help
Reply With Quote #1

I'm getting this error

error 035: argument type mismatch (argument 1)

From this line of my code

GetCmdArg(1, text, sizeof(text))

Text is set a few lines up on this line

decl String:text[255]

I honestly can't see what the problem is, this is a mod of an existing plugin which appears to have ceased development and I just need a little extra functionality for it to make my job easier, I've copied GetCmdArg from lower down in the code, changed the given values but this is still what I get

Any Ideas or do I need to supply more code
Maxis010 is offline
Kevin_b_er
SourceMod Donor
Join Date: Feb 2009
Old 08-19-2010 , 14:44   Re: GetCmdArg help
Reply With Quote #2

Looks ok to me at first glance.

Are you absolutely sure that's the line the compiler is complaining about?
__________________
Kevin_b_er is offline
Maxis010
Senior Member
Join Date: Jun 2009
Old 08-19-2010 , 17:01   Re: GetCmdArg help
Reply With Quote #3

My bad, seems that last time I compiled I had changed the code but not saved it so the line numbers were off, thanks anyway, going to fix the ACTUAL problem and add this topic to my Duh Moments
Maxis010 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 15:03.


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