SA-MP Forums Archive
Dialog Set Skin problem... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Set Skin problem... (/showthread.php?tid=266472)



Dialog Set Skin problem... - ricardo178 - 04.07.2011

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?