PDA

View Full Version : Parameter error


SpeeDeeR
06-20-2010, 19:52
public client_putinserver(id)
{
new name[33] , userip[13] , country[32]

get_user_name(id,name,32)
get_user_ip(id,userip,12)
geoip_country(userip, country, 31)
if(IsUserAdmin(id))
{
ColorChat(0,GREEN,"[]^1ADMIN^3 %s^1 has connected from^4 %s ^1,^4 %s", name, country); //line 27
}
else
{
ColorChat(0,GREEN,"[]^3 %s^1 has connected from^4 %s ^1,^4 %s", name, country);
}
return PLUGIN_HANDLED
}

L 06/21/2010 - 02:47:26: [AMXX] Run time error 25: parameter error
L 06/21/2010 - 02:47:26: [AMXX] [0] colorchat.inc::ColorChat (line 53)
L 06/21/2010 - 02:47:26: [AMXX] [1] connection.sma::client_putinserver (line 27)

Think some is wrong with my colorchat inc but whats wrong with this line

fysiks
06-20-2010, 20:15
You have three %s in the string but only two variables. You need one more string to input.

SpeeDeeR
06-21-2010, 00:46
OH MY GOD O.o