23.03.2014, 03:51
Define this at top:
And here is ur cmd
I have removed the sscanf
Код:
#if !defined isnull #define isnull(%1) \ ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1])))) #endif
Код:
{ new pID; new skinid; if(Dead[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Dead."); if(GetPVarInt(playerid, "IsSpecing") == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Spectating."); if(GetPVarInt(playerid, "IsFrozen") == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Frozen."); if(GetPVarInt(playerid, "IsCaged") == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Caged."); if(GetPVarInt(playerid, "IsJailed") == 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command When Jailed."); if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You Cannot Use This Command From A Vehicle."); if(isnull(params)) { ShowModelSelectionMenu(playerid, skinlist, "Select A Skin", 0, 1 , 0); } new skinid ; skinid = strval(params); if(skinid > 299 || skinid < 0) return SendClientMessage(playerid, COLOR_RED, "Invalid Skin ID."); if(skinid == GetPlayerSkin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You Already Have This Skin."); if(skinid == 294 || skinid == 0) return SendClientMessage(playerid, COLOR_RED, "You Must Be An Admin To Choose This Skin."); SetPlayerSkin(playerid, skinid); return 1; }