Raised This Month: $ Target: $400
 0% 

argument type mismatch & loose indentation problem :/


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Damocles
Member
Join Date: Jan 2005
Old 01-20-2005 , 10:54   argument type mismatch & loose indentation problem :/
Reply With Quote #1

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 indentation
/home/users/amxmodx/tmp/phpSiEYQW.sma(103) : error 035: argument type mismatch (argument 2)
/home/users/amxmodx/tmp/phpSiEYQW.sma(106) : warning 217: loose indentation
/home/users/amxmodx/tmp/phpSiEYQW.sma(108) : error 035: argument type mismatch (argument 2)
p.s. HOW THE HELL do i get rid of the loose indentation, ive gone to extremes with my indentation and its still moaning

Code:
public send_msg(id, rateType, rateValue) { // code here }

Code:
public client_putinserver(id) {         new rate[16]     new cl_updaterate[16]     // Get users rate value     get_user_info(id, "rate", rate, 15)     // Get users updaterate value     get_user_info(id, "cl_updaterate", cl_updaterate, 15)     // If rate < set rate, inform admins     if ((str_to_num(rate)) < MIN_RATE)     {         send_msg(id, "rate", rate)     }     // If cl_updaterate < set cl_updaterate, inform admins     if ((str_to_num(cl_updaterate))<MIN_CLUPDATERATE)     {           send_msg(id, "cl_updaterate", cl_updaterate)     }     return PLUGIN_HANDLED }

Thanks for any help
Damocles is offline
 



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 19:16.


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