Ja ich weiß, ich scheine zu blöd zum scripten zu sein aber heute ist halt mein erster Tag und ich versuche gerade einen TDM Script aufzubauen.
Wie dem auch sei, hier ein Error welchen ich zu 0% verstehe:
Was will mit der Pawno Editor da sagen?
//EDIT:
Und hier noch die zwei Menüs falls es hilft.
Die Zeile mit dem Error (423) ist hier Zeile 49.
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current; //Pistolen/Sonstiges menu
current = GetPlayerMenu(playerid);
if(current == pistolmenu)
{
switch(row)
{
case 0:
{
GivePlayerWeapon(playerid, 22, 50); //USP
GivePlayerMoney(playerid, -500);
HideMenuForPlayer(pistolmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 1:
{
GivePlayerWeapon(playerid, 24, 50); //Desert Eagle
GivePlayerMoney(playerid, -650);
HideMenuForPlayer(pistolmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 2:
{
GivePlayerWeapon(playerid, 17, 2); //Rauchgranate
GivePlayerMoney(playerid, -200);
HideMenuForPlayer(pistolmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 3:
{
GivePlayerWeapon(playerid, 16, 1); //HE-Granate
GivePlayerMoney(playerid, -700);
HideMenuForPlayer(pistolmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 4:
{
GivePlayerWeapon(playerid, 44, 1); //Nachtsichtgerät
GivePlayerMoney(playerid, -1250);
HideMenuForPlayer(pistolmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 5:
{
HideMenuForPlayer(pistolmenu, playerid); //Pistolen/Sonstiges Menu schließen
TogglePlayerControllable(playerid, 1);
}
else if(current == mpmenu)
{
switch(row)
{
case 0:
{
GivePlayerWeapon(playerid, 22, 50); //USP
GivePlayerMoney(playerid, -500);
HideMenuForPlayer(mpmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 1:
{
GivePlayerWeapon(playerid, 24, 50); //Desert Eagle
GivePlayerMoney(playerid, -650);
HideMenuForPlayer(pistolmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 2:
{
GivePlayerWeapon(playerid, 17, 2); //Rauchgranate
GivePlayerMoney(playerid, -200);
HideMenuForPlayer(mpmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 3:
{
GivePlayerWeapon(playerid, 16, 1); //HE-Granate
GivePlayerMoney(playerid, -700);
HideMenuForPlayer(mpmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 4:
{
GivePlayerWeapon(playerid, 44, 1); //Nachtsichtgerät
GivePlayerMoney(playerid, -1250);
HideMenuForPlayer(mpmenu, playerid);
TogglePlayerControllable(playerid, 1);
}
case 5:
{
HideMenuForPlayer(pistolmenu, playerid); //Pistolen/Sonstiges Menu schließen
TogglePlayerControllable(playerid, 1);
}
}
}
}
return 1;
}