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