Command Error
#2

The problem is that your code doesn't make a lot of sense! The "skin" variable should be an integer in the first place, then you're telling sscanf to look for an integer and store it in a string!

So this is an example with the problems I outlined fixed:

pawn Код:
COMMAND:skin(playerid , params[ ] )
{
    new skin;
    if(sscanf(params,"d", skin)) return SendClientMessage(playerid,COLOR_WHITE,"Folosire: /skin <id>");
    SetPlayerSkin(playerid,skin);
    return 1;
}
Reply


Messages In This Thread
Command Error - by Rock18 - 13.02.2011, 22:20
Re: Command Error - by JaTochNietDan - 13.02.2011, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)