Unkown Command
#1

Hello, Me again. Im using /giveskin to set players skin, Now I wanted to save it for if a player goes on duty or something,

But ingame it gives me unknown command.
Code:

PHP код:
CMD:giveskin(playeridparams[])
{
    new 
name[MAX_PLAYER_NAME];
    new 
id;
    new 
skin;
    if(
IsPlayerConnected(id))
    {
        if(
PlayerInfo[playerid][AdminLevel] >= 2)
        {
            if(!
sscanf(params"ui"idskin))
            {
                if((
skin >= && skin <= 300))
                {
                    
GetPlayerName(playerid,name);
                    
format(file,sizeof(file),"realityrp/users/%s.ini",name);
                    new 
string[64];
                    new 
name[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridnamesizeof(name));
                    
format(stringsizeof(string), "%s"skin);
                    
SetPlayerSkin(idskin);
                    
format(string2sizeof(string), "%s"skin);
                    
dini_IntSet(file"Skin",PlayerInfo[playerid][Skin] = skin);
                    return 
1;
                }
                else return 
SendClientMessage(playerid0xD8D8D8FF"Skin ID must be >1   300<");
            }
            else return 
SendClientMessage(playerid0xD8D8D8FF"USAGE: /giveskin [PlayerId/PartOfName] [Skin ID]");
        }
        else return 
SendClientMessage(playerid0xD8D8D8FF"You are not allowed to use this command");
    }
    else return 
SendClientMessage(playerid0xD8D8D8FF"Player Is Not Connected");

Reply


Messages In This Thread
Unkown Command - by milanosie - 15.01.2012, 21:29
Re: Unkown Command - by vassilis - 15.01.2012, 21:33
Re: Unkown Command - by milanosie - 15.01.2012, 21:35
Re: Unkown Command - by vassilis - 15.01.2012, 21:48
Re: Unkown Command - by milanosie - 15.01.2012, 21:48
Re: Unkown Command - by Snowman12 - 15.01.2012, 23:07
Re: Unkown Command - by [ABK]Antonio - 16.01.2012, 01:39

Forum Jump:


Users browsing this thread: 1 Guest(s)