Dialog crash help
#1

My server crash when i try to change skin what might be the problem here, is something with the ispoliceskin.

PHP код:
stock IsPoliceskin(skinplayerid)
{
    if(
IsACop(playerid))
    if(!(
280 <= skin <= 288)) return 1;
    return 
0;

PHP код:
case G_LOCKER_UNIFORM: if(response)    {
            new 
skin strval(inputtext), iGroupID PlayerInfo[playerid][pMember];
    
this line make the crash        if(IsPoliceskin(skin)) 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]); 
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)