tag
Hab nen Dialog gemacht wo er sich waffen holen kann und er zeigt mir 26 Errors an
Hab den Dialog Definiert etc
if(strcmp(cmdtext,"/waffen",true)==0)
{
ShowPlayerDialog(playerid,Waffen,DIALOG_STYLE_LIST,"Waffen Menü","Shotgun 5.000$\nMesser 200$\nKettenSäge 15.000$\nMolotov 25.000$\nArmor 500$\Health 500$","Fertig","Beenden");
}
if(dialogid==Waffen)
{
if(response==0)
{
return 1;
}
if(response==1)
{
return 1;
}
if(listitem == 0)
{
GivePlayerWeapon(playerid,26,250);
GivePlayerMoney(playerid,-5000);
return 1;
}
if(listitem == 1)
{
GivePlayerWeapon(playerid,4,1);
GivePlayerMoney(playerid,-200);
return 1;
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,9,1);
GivePlayerMoney(playerid,-15000);
return 1;
}
if(listitem == 3)
{
GivePlayerWeapon(playerid,18,20);
GivePlayerMoney(playerid,-25000);
return 1;
}
if(listitem == 4)
{
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid,-500);
return 1;
}
if(listitem == 5)
{
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-500);
return 1;
}