Pawno Crashing with dialog..
#1

Says it all, i've been trying to figure it out past 5 minutes
Everytime I add this into my script, it stops working.
pawn Код:
if(dialogid == 25)
{
            new string[128];
            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            GiveNameSpace(sendername);
            if(!response)

            {
                ShowPlayerDialog(playerid,20,DIALOG_STYLE_LIST,"Los Santos Police Deptartment Locker Room ","Go [ON/OFF] Duty\r\nUniform\r\nEquipment","Select","Close Locker");
                return 1;
            }
        if (listitem == 0)
        {
        ResetPlayerWeaponsEx(playerid);
        GivePlayerWeaponEx(playerid, 3, 1);
        GivePlayerWeaponEx(playerid, 24, 400);
        GivePlayerWeaponEx(playerid, 41, 999);
        GivePlayerWeaponEx(playerid, 25, 150);
        return 1;
        }
        if (listitem == 1)
        {
        ResetPlayerWeaponsEx(playerid);
        GivePlayerWeaponEx(playerid, 3, 1);
        GivePlayerWeaponEx(playerid, 24, 400);
        GivePlayerWeaponEx(playerid, 41, 999);
        GivePlayerWeaponEx(playerid, 25, 150);
        GivePlayerWeaponEx(playerid, 29, 2000);
        return 1;
        }
        if (listitem == 2)
        {
        ResetPlayerWeaponsEx(playerid);
        GivePlayerWeaponEx(playerid, 3, 1);
        GivePlayerWeaponEx(playerid, 24, 400);
        GivePlayerWeaponEx(playerid, 41, 999);
        GivePlayerWeaponEx(playerid, 25, 150);
        GivePlayerWeaponEx(playerid, 29, 2000);
        GivePlayerWeaponEx(playerid, 31, 2500);
        return 1;
        }
        if (listitem == 3)
        {
        ResetPlayerWeaponsEx(playerid);
        GivePlayerWeaponEx(playerid, 3, 1);
        GivePlayerWeaponEx(playerid, 24, 400);
        GivePlayerWeaponEx(playerid, 41, 999);
        GivePlayerWeaponEx(playerid, 25, 150);
        GivePlayerWeaponEx(playerid, 29, 2000);
        GivePlayerWeaponEx(playerid, 43, 100);
        return 1;
        }
        }
    }
}
Ideas? Thanks in advanced!
Reply


Messages In This Thread
Pawno Crashing with dialog.. - by iLcke - 25.09.2011, 05:19
Re: Pawno Crashing with dialog.. - by Ironboy - 25.09.2011, 05:25
Re: Pawno Crashing with dialog.. - by iLcke - 25.09.2011, 05:35
Re: Pawno Crashing with dialog.. - by [HiC]TheKiller - 25.09.2011, 05:45
Re : Pawno Crashing with dialog.. - by timaoux - 25.09.2011, 09:08

Forum Jump:


Users browsing this thread: 1 Guest(s)