arguments - whats wrong ?
Hi
need help with the arguments of a command first... ****** ****ing arguments ******* ******. this *************** small is n ************ language. ****** :evil: ok now lets have a look at the problem :wink: (its n test script....) Code:
ok there are lottttts of errors :cry: Code:
(22) : error 035: argument type mismatch (argument 1)make_test make_test 0 make_test 1 make_test 10 make_test 20 make_test 100 make_test 200 make_test 1000 can someon tell me how to use the "read_argv" in correckt way _?? cucu |
try this
Code:
|
Almost correct, Da Bishop. When checking for 0 or 1, those would need to be single quotes, I believe. Also the checking for 10 or 100 would never work because all you're doing is comparing the first char of the string to "10". Heh, how can one character be the same as "10". That's not going to work.
I would recommend creating a new variable and turning that argument string into a number. Checking it for some value will be much easier that way, I think. Code:
|
ok nice ... :)
but if i change str to num a=1 b=2 c=4 d=8 ok and so on..... in the if part..... "0" is there also n string so i must change it also in an nummer it will by something like 4000 or mor 8) is it posible to make (to find the string easyr) Code:
is this right or wrong ??? |
ok i make new post ;) find some new way ... much easyr
Code:
0 ERRORS ok i will test it in the evening of it works in HL ;) some litle thing ... Code:
#pragma tabsize 0cucu |
Looks like it should run okay.
Code:
That tells the compiler to stop issuing the loose indentation warning. You usually get that warning when your code indenting isn't lined up correctly. That's why you got those warnings that you posted in your original message. It's really nothing to worry about if you do get the warning because your plugin should still run, but setting the tabsize to 0 just prevents the warning from coming up. |
sry, i always throw #pragma tabsize 0 in my code. I hate those stupid indentation errors - make no sense - too lazy to really go back and check my line up. Not going to cause problems anyways.
|
| All times are GMT -4. The time now is 17:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.