Command Error
#1

Hey , today i've made a new command ussing zcmd and sscanf

Код:
COMMAND:skin(playerid , params[ ] )
    {
    new skin[128];
	if(sscanf(params,"d", skin)) return SendClientMessage(playerid,COLOR_WHITE,"Folosire: /skin <id>");
	SetPlayerSkin(playerid,strval(skin));
	return 1;
    }
The command work but when i go in game and type ex : /skin 29 it doesn't change my skin to that id , it change to id 0 whatever id i put and i can't figure out what's the problem ....
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)