17.01.2013, 18:58
How i make a /setskin CMD?
I know this
CMDetskin
No more..
I know this
CMDetskin
No more..
COMMAND:myskin(playerid,params[])
{
if ( sscanf( params, "d", params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""COL_LIGHTBLUE"Usage:{FFFFFF} /myskin <skin>");
if ( !IsValidSkin( params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""COL_RED"ERROR:{FFFFFF} Invalid skin ID.");
SetPlayerSkin(playerid, params[ 0 ]);
Account[playerid][Skin] = params [ 0 ];
new String[180];
format( String, sizeof String, "{FFFFFF}You set your Skin to "COL_LIGHTBLUE"%d{FFFFFF} and it has been saved into your account succesfully!", params[ 0 ] );
SendClientMessage( playerid, -1, String );
return 1;
}
if ( sscanf( params, "d", params[ 0 ] ) ) return SendClientMessage( playerid, -1, ""COLOR_BLUE"Usage:{FFFFFF} /myskin <skin>");
(397) : warning 219: local variable "b" shadows a variable at a preceding level
(7151) : warning 209: function "SSCANF_OnPlayerDisconnect" should return a value
(59349) : error 001: expected token: "-string end-", but found "-identifier-"(59349) : warning 215: expression has no effect
(59349) : error 001: expected token: ";", but found "-string-"
(59349) : warning 215: expression has no effect
(59349) : error 001: expected token: ";", but found ")"
(59349) : fatal error 107: too many error messages on one line
C:\Users\DELL\Desktop\GM (3)\pawno\include\md5.inc(397) : warning 219: local variable "b" shadows a variable at a preceding level
C:\Users\DELL\Desktop\GM (3)\gamemodes\gm.pwn(7151) : warning 209: function "SSCANF_OnPlayerDisconnect" should return a value
C:\Users\DELL\Desktop\GM (3)\gamemodes\gm.pwn(59350) : error 017: undefined symbol "IsValidSkin"
C:\Users\DELL\Desktop\GM (3)\gamemodes\gm.pwn(59350) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\DELL\Desktop\GM (3)\gamemodes\gm.pwn(59350) : warning 215: expression has no effect
C:\Users\DELL\Desktop\GM (3)\gamemodes\gm.pwn(59350) : error 001: expected token: ";", but found "-string-"
C:\Users\DELL\Desktop\GM (3)\gamemodes\gm.pwn(59350) : fatal error 107: too many error messages on one line
if ( !IsValidSkin( params[ 0 ] ) ) return SendClientMessage( playerid, -1*3, ""COLOR_RED"Viga:{FFFFFF} Wrong ID.");