Dialog crash help
#8

PHP код:
stock IsPoliceskin(playeridskinId)
{
    if(
IsACop(playerid))
    {
        if(!( (
280 <= skinId) & (skinId <= 288) )) 
        {
            return 
1;
        }
    }
    return 
0;
}  
case 
G_LOCKER_UNIFORM: if(response)    {
    new 
skin strval(inputtext);
    new 
iGroupID PlayerInfo[playerid][pMember];
    
//Like someone mentioned already it may be SendClientMessageEx
    
if(IsPoliceskin(playeridskin))
    {
        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(playeridPlayerInfo[playerid][pModel]);  
//}?

If u write your code like that you can overlook it easier
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)