Dialog crash help
#7

Try this:
PHP код:
stock IsPoliceskin(skinplayerid)
{
    if(
IsACop(playerid))
    {
        if(!(
280 <= skin <= 288)) return 1;
    }
    return 
0;
}
case 
G_LOCKER_UNIFORM:
{
    if(
response)
    {
        new 
skin strval(inputtext),iGroupID PlayerInfo[playerid][pMember];
        if(
IsPoliceskin(skin,playerid))return SendClientMessageEx(playeridCOLOR_LIGHTRED"[SERVER]: You're not in LSPD so you cannot use that skin");
        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(playerid,PlayerInfo[playerid][pModel]);
    }

Reply


Messages In This Thread
Dialog crash help - by N0FeaR - 03.02.2016, 14:54
Re: Dialog crash help - by BiosMarcel - 03.02.2016, 15:42
Re: Dialog crash help - by N0FeaR - 03.02.2016, 15:59
Re: Dialog crash help - by valych - 03.02.2016, 16:12
Re: Dialog crash help - by BiosMarcel - 03.02.2016, 16:12
Re: Dialog crash help - by N0FeaR - 03.02.2016, 16:27
Re: Dialog crash help - by Mencent - 03.02.2016, 16:35
Re: Dialog crash help - by BiosMarcel - 03.02.2016, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)