AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   GetCmdArg help (https://forums.alliedmods.net/showthread.php?t=135775)

Maxis010 08-19-2010 14:13

GetCmdArg help
 
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

Kevin_b_er 08-19-2010 14:44

Re: GetCmdArg help
 
Looks ok to me at first glance.

Are you absolutely sure that's the line the compiler is complaining about?

Maxis010 08-19-2010 17:01

Re: GetCmdArg help
 
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


All times are GMT -4. The time now is 19:06.

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