15.11.2013, 16:36
I have file closed, I just posted error line. And I made just this, look to it
This tabs are okay dont know why on web is it broken. :D
pawn Код:
public OnDialogResponse (playerid, dialogid, response, listitem, inputtext [])
{
switch (dialogid)
{
case DIALOG_VOZIDLO:
{
if (!response) return true;
{
if (listitem == 0)
{
if (SlotZabraty [playerid] == 1)
{
return SendClientMessage (playerid, -1, "V tomto slote uz je uloћenб zbran!");
}
new wSlot1[MAX_PLAYERS], wSlot1Ammo[MAX_PLAYERS];
wSlot1 [playerid] = GetPlayerWeapon(playerid);
wSlot1Ammo [playerid] = GetPlayerAmmo(playerid);
new INI:Subor = INI_Open (Umiestnenie(1));
INI_WriteInt (Subor, "Slot1Weapon", wSlot1 [playerid]);
INI_WriteInt (Subor, "Slot1WeaponAmmo", wSlot1Ammo [playerid]);
INI_Close (Subor);
SendClientMessage (playerid, -1, "Ъspeљne si uloћil zbran do slotu 1!");
SlotZabraty [playerid] = 1;
}
else if (listitem == 1)
{
SendClientMessage (playerid, -1, "Ъspeљne si uloћil zbran do slotu 2!");
}
else if(listitem == 2)
{
SendClientMessage (playerid, -1, "Ъspeљne si uloћil zbran do slotu 3!");
}
}
}
return true;
}