argument type mismatch & loose indentation problem :/
Hey,
Can someone tell me why im getting type mismatch values for the send_msg function. This is how id do it in Java apart from specifying the type of the parameter. Im getting these errors: Code:
/home/users/amxmodx/tmp/phpSiEYQW.sma(79) : warning 217: loose indentationCode:
Code:
Thanks for any help :) |
Indent warnings mean nothign at all. If they really bother you add this to your script
Code:
I not sure where you are going with the send_msg but perhaps you may try this. Code:
|
the send message function is used to print out to all the admin currently connected that either the players rate or updaterate are below a set value. Thats why i put the code in the send_msg function because its essentially the same code but simply changes based on whether the rate or the updaterate values are 'dodgy'
Im trying to pass it a string of which value is suspect so that it can be used to print out to the admins which value needs changing...and thats the output i get :( |
From what i know there is no send_msg. But you could do something like this
Code:
of course assigning a name to player name and rate to rate. |
lol
I know there is no send_msg function in the amx libraries. I have written my own function....which i take it is perfectly valid in small as it is in any other language :) Here is the code just so you can see what it does. Like i said before its just to remove the need to write the code over again Code:
Heopfully this will make it clearer for you to see what im trying to do bishop :) |
It should be rateType[]
Code:
|
ahhh Geesu your a GENIUS :) ty
|
Ah well see, there is always good thing to show all your codes ;). If you still get indent warnings (which you probably will) and if really hate seeing them. I suggest the
#pragma tabsize 0 method. |
Umm, I'd rather suggest correct intentdation ;)
|
Quote:
|
| All times are GMT -4. The time now is 19:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.