Mittag Breadfisher,
wie der Threadtitel schon sagt habe ich ein Problem mit einem Menu.Ich bekomme einen Error wenn ich es compiliere aber nur wenn dieses Menu drin ist Hier mal das Menu:
if(dialogid == DMPortmenu)
{
if(response)
{
if(indm == 1 || indm2 == 1 || indm3 == 1|| indm4 == 1)
{
SendClientMessage(playerid,0xff0000ff,"Du musst erst /dmout machen!!!");
return 1;
}
SetPlayerPos(playerid,1305.3818,2107.9236,11.0156);
SetPlayerFacingAngle(playerid,317.4469);
SetPlayerVirtualWorld(playerid,1);
SetPlayerWorldBounds(playerid,1412.7114,1298.5807,2206.9006,2102.3435);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,25,600);
GivePlayerWeapon(playerid,29,750);
SendClientMessage(playerid,0xffff00ff,"**Erfolgreich in die erste DM Arena geportet**");
indm = true;
new name[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid,name,sizeof name);
format(string,sizeof string,"%s ist in die DM Arena 1 gegangen (/dm)",name);
SendClientMessageToAll(0x007f00ff,string);
return 1;
}
if(listitem == 1)
{
if(indm == 1 || indm2 == 1 || indm3 == 1|| indm4 == 1)
{
SendClientMessage(playerid,0xff0000ff,"Du musst erst /dmout machen!!!");
return 1;
}
SetPlayerPos(playerid,-2062.6831,-107.6293,35.3248);
SetPlayerFacingAngle(playerid,170.1787);
SetPlayerVirtualWorld(playerid,1);
SetPlayerWorldBounds(playerid,-2011.0583,-2096.5439,-103.2343,-281.0296);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,28,750);
GivePlayerWeapon(playerid,26,600);
GivePlayerWeapon(playerid,30,1000);
SendClientMessage(playerid,0xffff00ff,"**Erfolgreich in die zweite DM Arena geportet**");
indm2 = true;
new name[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid,name,sizeof name);
format(string,sizeof string,"%s ist in die DM Arena 2 gegangen (/dm2)",name);
SendClientMessageToAll(0x007f00ff,string);
return 1;
}
if(listitem == 2)
{
if(indm == 1 || indm2 == 1 || indm3 == 1|| indm4 == 1)
{
SendClientMessage(playerid,0xff0000ff,"Du musst erst /dmout machen!!!");
return 1;
}
SetPlayerPos(playerid,3834.4326,-2147.0059,16.4115);
SetPlayerFacingAngle(playerid,248.4660);
SetPlayerVirtualWorld(playerid,1);
SetPlayerWorldBounds(playerid,3965.4976,3658.1167,-1819.6593,-2227.6606);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,29,750);
GivePlayerWeapon(playerid,27,600);
GivePlayerWeapon(playerid,31,1000);
GivePlayerWeapon(playerid,34,250);
SendClientMessage(playerid,0xffff00ff,"**Erfolgreich in die dritte DM Arena geportet**");
indm3 = true;
new name[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid,name,sizeof name);
format(string,sizeof string,"%s ist in die DM Arena 3 gegangen (/dm3)",name);
SendClientMessageToAll(0x007f00ff,string);
return 1;
}
if(listitem == 3)
{
if(indm == 1 || indm2 == 1 || indm3 == 1|| indm4 == 1)
{
SendClientMessage(playerid,0xff0000ff,"Du musst erst /dmout machen!!!");
return 1;
}
SetPlayerPos(playerid,-457.0404,2225.3867,43.0470);
SetPlayerFacingAngle(playerid,109.0781);
SetPlayerVirtualWorld(playerid,1);
SetPlayerWorldBounds(playerid,-331.2280,-485.8798,2312.0286,2162.0315);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,25,600);
GivePlayerWeapon(playerid,29,750);
SendClientMessage(playerid,0xffff00ff,"**Erfolgreich in die vierte DM Arena geportet**");
indm4 = true;
new name[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid,name,sizeof name);
format(string,sizeof string,"%s ist in die DM Arena 4 gegangen (/dm4)",name);
SendClientMessageToAll(0x007f00ff,string);
return 1;
}
}
}//Zeile 2528
return 1;//Zeile 2529
}
Der Error + Warning:
C:\Dokumente und Einstellungen\Bjoern\Eigene Dateien\Untitled.pwn(2528 ) : warning 209: function "OnDialogResponse" should return a value
C:\Dokumente und Einstellungen\Bjoern\Eigene Dateien\Untitled.pwn(2529 ) : error 010: invalid function or declaration
(Für die die grad Essen^^ Guten Appetit^^)