help about clan
#1

hi to all dears
i have a problem
i made this cmd
PHP Code:

dcmd_clan
(playerid,params[])
{
    new 
string[128];
    new 
name;
    if(
sscanf(params"s",name))
    {
        
SendClientMessage(playerid,COLOR_ERROR,"Pls Use /Clan [Name]");
        return 
1;
    }
    if(
Clan[playerid] != 0)
    {
        
SendClientMessage(playerid,COLOR_ERROR,"You Have Clan");
        return 
1;
    }
    
Clan[playerid] =name;
    
Rank[playerid] =5;
    
format(string,sizeof(string),"{00FFFF}You Successfully Created Clan >> {FFFF00}%s ",name);
    
SendClientMessage(playerid,COLOR_DODGERBLUE,string);
    return 
1;

but in players information it save just One letter of clan name
can somebody fix it for me?
thank you really
Reply


Messages In This Thread
help about clan - by mehdimmz - 01.11.2014, 11:12
Re: help about clan - by dominik523 - 01.11.2014, 11:17
Re: help about clan - by mehdimmz - 01.11.2014, 11:36
Re: help about clan - by Sawalha - 01.11.2014, 11:45
Re: help about clan - by mehdimmz - 01.11.2014, 11:50
Re: help about clan - by Sawalha - 01.11.2014, 11:51
Re: help about clan - by mehdimmz - 01.11.2014, 12:02
Re: help about clan - by BroZeus - 01.11.2014, 12:26
Re: help about clan - by mehdimmz - 01.11.2014, 14:28
Re: help about clan - by mehdimmz - 01.11.2014, 15:30

Forum Jump:


Users browsing this thread: 7 Guest(s)