AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Parameter error (https://forums.alliedmods.net/showthread.php?t=130159)

SpeeDeeR 06-20-2010 19:52

Parameter error
 
PHP Code:

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(useripcountry31)
    if(
IsUserAdmin(id))
    {
        
ColorChat(0,GREEN,"[]^1ADMIN^3 %s^1 has connected from^4 %s ^1,^4 %s"namecountry);  //line 27
    
}
    else
    {
        
ColorChat(0,GREEN,"[]^3 %s^1 has connected from^4 %s ^1,^4 %s"namecountry);
    }
  return 
PLUGIN_HANDLED


Code:


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

Re: Parameter error
 
You have three %s in the string but only two variables. You need one more string to input.

SpeeDeeR 06-21-2010 00:46

Re: Parameter error
 
OH MY GOD O.o


All times are GMT -4. The time now is 14:52.

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