Dialog Little Problem.
#1

Hello guys,
I am starting with dialogs, and i made one to choise a team in a gm that i am making....
I setted all, and others work, but this one, is seting all, the color, and sending the write message, if we write terrorists, or counter terrorists, but it doesn't set the fucking skin...

Code:
pawn Код:
if(dialogid == 6)
    {
        if(response)
        {
            new message[256+1];
            if(listitem == 0)
            {
            format(message, 256, "You selected Terrorist", listitem);
            SendClientMessage(playerid, 0xFFFFFFFF, message);
            SpawnPlayer(playerid);
            SetPlayerPos(playerid, 0.0, 0.0, 0.0);
            SetPlayerColor(playerid, T_COLOR);
            SetPlayerSkin(playerid, 222);
            }
            if(listitem == 1)
            {
              format(message, 256, "You selected Counter Terrorist!", listitem);
              SendClientMessage(playerid, 0xFFFFFFFF, message);
              SpawnPlayer(playerid);
              SetPlayerPos(playerid, 0.0, 0.0, 0.0);
              SetPlayerColor(playerid, CT_COLOR);
              SetPlayerSkin(playerid, 252);
              return 1;
            }
        }
    }
return 1;
}
Thank you...
Is it any return leack?
Reply


Messages In This Thread
Dialog Little Problem. - by ricardo178 - 05.07.2011, 08:48
Re: Dialog Little Problem. - by park4bmx - 05.07.2011, 16:51
Re: Dialog Little Problem. - by =WoR=Varth - 06.07.2011, 03:01

Forum Jump:


Users browsing this thread: 1 Guest(s)