23.02.2013, 10:00
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; }