IsValidSkin with admin command.
#3

Quote:
Originally Posted by Nubik
Посмотреть сообщение
Your functions names are different.

Change if(!IsInvalidSkin(skinid)) to if(IsValidSkin(skinid))

And remove skin id 300 to 311 from IsValidSkin function.
it did work for /setskin but now if I try to take a skin above ID 300 from the group locker it doesn't work here the dialog:

PHP код:
case G_LOCKER_UNIFORM: if(response)    {
            new 
skin strval(inputtext), iGroupID PlayerInfo[playerid][pMember];
            if(
IsInvalidSkin(skin)) {
                return 
ShowPlayerDialog(playeridG_LOCKER_UNIFORMDIALOG_STYLE_INPUTarrGroupData[iGroupID][g_szGroupName],"Invalid skin specified. Choose another.""Select""Cancel");
            }
            
PlayerInfo[playerid][pModel] = skin;
            
SetPlayerSkin(playeridPlayerInfo[playerid][pModel]); 
Reply


Messages In This Thread
IsValidSkin with admin command. - by IndependentGaming - 15.03.2018, 10:42
Re: IsValidSkin with admin command. - by Nubik - 15.03.2018, 11:00
Re: IsValidSkin with admin command. - by IndependentGaming - 15.03.2018, 11:13
Re: IsValidSkin with admin command. - by Nubik - 15.03.2018, 11:21

Forum Jump:


Users browsing this thread: 1 Guest(s)