Yo :>
Habe bei diesem Dialog Ständig den Error und wenn ich eine Klammer hinzufüge Stürzt der Compiler ab :<
Hier der Dialog:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new pID;
new pIDGeld;
pIDGeld = GetPlayerMoney(pID);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,24);
new Float:GTX,Float:GTY,Float:GTZ;
new string[128];
new pIDName[MAX_PLAYER_NAME];
if(dialogid == DIALOG_BEFEHLE && response)
{
switch(listitem)
{
case 0:
{
Ban(pID);
format(string,128,"Administrator %s bannt %s",pName,pIDName);
SendClientMessageToAll(GELB,string);
}
case 1:
{
Kick(pID);
format(string,128,"Administrator %s kickt %s",pName,pIDName);
SendClientMessageToAll(GELB,string);
}
case 2:
{
ResetPlayerWeapons(pID);
SetPlayerPos(pID,197.6661,173.8179,1003.0234);
SetPlayerInterior(pID,3);
format(string,128,"Admin %s sperrt %s ein",pName,pIDName);
SendClientMessageToAll(GELB,string);
}
case 3:
{
GetPlayerPos(pID,GTX,GTY,GTZ);
CreateExplosion(GTX,GTY,GTZ,12,15);
}
case 4:
{
GetPlayerPos(pID,GTX,GTY,GTZ);
SetPlayerPos(playerid,GTX+1,GTY,GTZ);
format(string,128,"Administrator %s portet sich zu %s",pName,pIDName);
SendClientMessageToAll(GELB,string);
}
case 5:
{
GetPlayerPos(playerid,GTX,GTY,GTZ);
SetPlayerPos(pID,GTX+1,GTY,GTZ);
format(string,128,"User %s wird zu Administrator %s geportet",pIDName,pName);
SendClientMessageToAll(GELB,string);
}
case 6:
{
GetPlayerMoney(pID);
format(string,128,"Geld von %s: %s",pIDName,pIDGeld);
SendClientMessage(playerid,GELB,string);
}
case 7:
{
ResetPlayerMoney(pID);
format(string,128,"Du hast das Geld von %s Resettet",pIDName);
SendClientMessage(playerid,GELB,string);
}
case 8:
{
new plrIP[16];
GetPlayerIp(pID,plrIP,sizeof(plrIP));
SendClientMessage(playerid,GELB,plrIP);
}
case 9:
{
ShowPlayerDialog(playerid,DIALOG_LEVELSETZEN,DIALOG_STYLE_INPUT,"Score Setzen","Tippe bitte eine Zahl ein!","Fertig","Abbrechen");
}
case 10:
{
ShowPlayerDialog(playerid,DIALOG_FARBESETZEN,DIALOG_STYLE_LIST,"Farbe Setzen","Blau\nGelb\nRot\nGrün\nLila","Fertig","Abbrechen");
}
case 11:
{
ResetPlayerWeapons(pID);
format(string,128,"Du hast die Waffen von %s Resettet!",pIDName);
SendClientMessage(playerid,GELB,string);
}
case 12:
{
SpawnPlayer(pID);
format(string,128,"Administrator %s Spawnt %s",pName,pIDName);
}
case 13:
{
PlayerSpectatePlayer(playerid,pID,SPECTATE_MODE_NORMAL);
}
case 14:
{
TogglePlayerSpectating(playerid,1);
SpawnPlayer(playerid);
}
case 15:
{
TogglePlayerControllable(pID,1);
}
case 16:
{
TogglePlayerControllable(pID,0);
}
case 17:
{
SetPlayerHealth(pID,100);
}
case 18:
{
SetPlayerArmour(pID,100);
}
case 20:
{
ShowPlayerDialog(playerid,DIALOG_GIVEGUN,DIALOG_STYLE_LIST,"GiveGun Liste","Munition ist immer 120\n\n\nDesert Eagle\nMP5\nUzi\nTec-9\nAK-47\nSchrotflinte\nCombat Schrotflinte\nM4\nMesser\nSniper\nChainsaw\nFallschirm","Auswählen","Abbrechen");
}
}
return 1;
}
return 1;
}
Was muss ich da machen?