Nem értem miért nem jó..csak 1 warning van benne..pedig örülnék ennek a scriptnek ha mûködne :/
Leírom hátha tudod/tudjátok mi a baja:
[pawn]#include <a_samp>
#include <zcmd>
#define FILTERSCRIPT
#define weapons 106
//Fegyverbolt
CMD:fegyver(playerid)
{
ShowPlayerDialog (playerid, weapons, DIALOG_STYLE_LIST, \"Fegyver Bolt\", \"Golyoallo - $2000\\n9mm - $700\\nHangtompitos pisztoly - $1000\\nDesert Eagle - $1200\\nUzi - $1500\\nTec9 - $1500\\nMP5 - $1200\\nShotgun - $1500\\nDupla Shotgun - $1800\\nHarci Shotgun - $2000\\nAK-47 - $3000\\nM4 - $4000\\nParaszt Sniper - $3000\\nProfi Sniper - $5000\\n\",\"Okés
\", \"Mégse
\" );
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==weapons)
{
if(response)
{
if(listitem==0)//Golyóálló
{
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid,-2000);
}
if(listitem==1)//9mm
{
GivePlayerWeapon(playerid, 22, 50);
GivePlayerMoney(playerid,-700);
}
if(listitem==2)//Hangtompitós
{
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 23, 50);
GivePlayerMoney(playerid,-1000);
}
if(listitem==3)//Desert Eagle
{
if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 24, 100);
GivePlayerMoney(playerid,-1200);
}
if(listitem==4)//Uzi
{
if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 28, 5000);
GivePlayerMoney(playerid,-100);
}
if(listitem==5)//Tec9
{
if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 32, 100);
GivePlayerMoney(playerid,-1500);
}
if(listitem==6)//MP5
{
if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 29, 25);
GivePlayerMoney(playerid,-1200);
}
if(listitem==7)//Shothun
{
GivePlayerWeapon(playerid, 25, 25);
GivePlayerMoney(playerid,-1500);
}
if(listitem==8)//Dupla Shotgun
{
if(GetPlayerMoney(playerid) < 1800) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 26, 25);
GivePlayerMoney(playerid,-1800);
}
if(listitem==9)//Harci Shotgun
{
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 27, 150);
GivePlayerMoney(playerid,-2000);
}
if(listitem==10)//AK47
{
if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 30, 150);
GivePlayerMoney(playerid,-3000);
}
if(listitem==11)//M4
{
if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 31, 500);
GivePlayerMoney(playerid,-4000);
}
if(listitem==12)//Paraszt Sniper
{
if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 33, 100);
GivePlayerMoney(playerid,-3000);
}
if(listitem==13)//Profi Sniper
{
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid,0xAA3333AA,\"Nincs ennyi pénzed!\");
GivePlayerWeapon(playerid, 34, 100);
GivePlayerMoney(playerid,-5000);
}
}
}
return 1;
}[/pawn]