Hey,
Mein Dialog spackt rum, immer wenn ich was auswähle, komme ich immer ins falsche response,
Kurzgesagt dass ich egal was ich anklicke, immer in das selbe reinkomme:
Hier meine PWN Codes:
if(dialogid==DIALOG_WEAPONS)
{
if(response==0)
{
SetPlayerColor(playerid,COLOR_RED);
SetPlayerTeam(playerid,1);
SendClientMessage(playerid,0xFFFF00FF,"Du hast das rote Team gewählt!");
GivePlayerWeapon(playerid, 24, 50000);
GivePlayerWeapon(playerid, 25, 50000);
GivePlayerWeapon(playerid, 29, 50000);
GivePlayerWeapon(playerid, 16, 78);
GivePlayerWeapon(playerid, 31, 50000);
GivePlayerWeapon(playerid, 34, 50000);
GivePlayerWeapon(playerid, 41, 50000);
GivePlayerWeapon(playerid, 3, 2);
TogglePlayerControllable(playerid,1);
}
if(response==1)
{
SendClientMessage(playerid,COLOR_BLUE,"Du hast das blaue Team gewählt!");
SetPlayerTeam(playerid,2);
SetPlayerColor(playerid,COLOR_BLUE);
GivePlayerWeapon(playerid, 24, 50000);
GivePlayerWeapon(playerid, 25, 50000);
GivePlayerWeapon(playerid, 29, 50000);
GivePlayerWeapon(playerid, 16, 78);
GivePlayerWeapon(playerid, 31, 50000);
GivePlayerWeapon(playerid, 34, 50000);
GivePlayerWeapon(playerid, 41, 50000);
GivePlayerWeapon(playerid, 3, 2);
TogglePlayerControllable(playerid,1);
}
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Teamchange", "ROT\nBLAU\nORANGE", "Okay", "Okay");
Danke im vorraus.