3 dialog is van:
1sõ ezt csak szerkeztetem
if(dialogid == DIALOG_1)
{
if(response == 1)
{
switch(listitem)
{
case 0: // Az alant látható kódrészleteket ZeRo írta
{
ChosenSkin[playerid] = 2;
SetPlayerSkin(playerid, 2);
PlayerInfo[playerid][pChar] = 2;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 1:
{
ChosenSkin[playerid] = 1;
SetPlayerSkin(playerid, 1);
PlayerInfo[playerid][pChar] = 1;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 2:
{
ChosenSkin[playerid] = 123;
SetPlayerSkin(playerid, 123);
PlayerInfo[playerid][pChar] = 123;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 3:
{
ChosenSkin[playerid] = 22;
SetPlayerSkin(playerid, 22);
PlayerInfo[playerid][pChar] = 22;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 4:
{
ChosenSkin[playerid] = 46;
SetPlayerSkin(playerid, 46);
PlayerInfo[playerid][pChar] = 46;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 5:
{
ShowPlayerDialog(playerid, DIALOG_5, DIALOG_STYLE_LIST, \"Férfi ruhák.\", \"Tetováltkaru\\nSzemüvegesnyakláncos\\nGörkoris\\nCsikosInges\\nElvis\\nRövidnacis\\nBohóc\", \"Kiválasztás\", \"Mégse\");
}
case 6:
{
ShowPlayerDialog(playerid, DIALOG_6, DIALOG_STYLE_LIST, \"Férfi ruhák.\", \"Tetováltkaru\\nSzemüvegesnyakláncos\\nGörkoris\\nCsikosInges\\nElvis\\nRövidnacis\\nBohóc\", \"Kiválasztás\", \"Mégse\");
}
}
}
else
{
SendClientMessage(playerid, 0xEB000FFF, \"A Mégsére kattintottál \");
}
}
2 dik Ezt most irtam
if(dialogid == DIALOG_5)
{
if(response == 1)
{
switch(listitem)
{
case 0: // Az alant látható kódrészleteket ZeRo írta
{
ChosenSkin[playerid] = 44;
SetPlayerSkin(playerid, 44);
PlayerInfo[playerid][pChar] = 44;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 1:
{
ChosenSkin[playerid] = 47;
SetPlayerSkin(playerid, 47);
PlayerInfo[playerid][pChar] = 47;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 2:
{
ChosenSkin[playerid] = 52;
SetPlayerSkin(playerid, 52);
PlayerInfo[playerid][pChar] = 52;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 3:
{
ChosenSkin[playerid] = 59;
SetPlayerSkin(playerid, 59);
PlayerInfo[playerid][pChar] = 59;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 4:
{
ChosenSkin[playerid] = 83;
SetPlayerSkin(playerid, 83);
PlayerInfo[playerid][pChar] = 83;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
case 5:
{
ChosenSkin[playerid] = 97;
SetPlayerSkin(playerid, 97);
PlayerInfo[playerid][pChar] = 97;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
case 6:
{
ChosenSkin[playerid] = 264;
SetPlayerSkin(playerid, 264);
PlayerInfo[playerid][pChar] = 234;
SafeGivePlayerMoney(playerid, - 150);
SendClientMessage(playerid, 0x38FF06FF, \"Megvetted a ruhát!\" );
}
}
}
else
{
SendClientMessage(playerid, 0xEB000FFF, \"A Mégsére kattintottál \");
}
}
És a 3 dik ugyanaz mint a második mivel az még nincs jól megirva