command from zcmd to strcmp
#1

How can I convert this command STRCMP?
Код:
CMD:myskin( playerid, params[] )
{
    if ( P_DATA[ playerid ][ P_Logged ] == 0 )
	    return SendError( playerid, "You must be logged in to change your skin! ~n~Type ~b~~h~/login.");

	if ( sscanf( params, "i", params[ 0 ] ) )
	    return SendUsage( playerid, "/myskin <skin ID>");

    if ( !IsValidSkin( params[ 0 ] ) )
        return SendError( playerid, "Invalid skin inserted!");

	P_DATA[ playerid ][ P_Skin ] = params[ 0 ];
	SetPlayerSkin( playerid, params[ 0 ] );

	new String[ 129 ];
	format( String, sizeof String, "You have changed your skin to ~b~~h~%d~w~. It has been saved into your account, on next login this skin will be applied.", params[ 0 ] );
	Info( playerid,  String, 5000);


	new iUID = BUD::GetNameUID( PlayerName2( playerid ) );
	BUD::SetIntEntry(iUID, "Skin", params[ 0 ] );

	return 1;
}
Reply


Messages In This Thread
command from zcmd to strcmp - by toi - 23.02.2013, 10:00
Re: command from zcmd to strcmp - by Djole1337 - 23.02.2013, 10:02
Re: command from zcmd to strcmp - by Goldino - 23.02.2013, 10:05
Re : command from zcmd to strcmp - by yusei - 23.02.2013, 10:15
Re: command from zcmd to strcmp - by Gamer_007 - 23.02.2013, 10:38

Forum Jump:


Users browsing this thread: 1 Guest(s)