Dialog Little 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 Little Problem. (
/showthread.php?tid=266548)
Dialog Little Problem. -
ricardo178 - 05.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?
Re: Dialog Little Problem. -
park4bmx - 05.07.2011
I think the skin does not get Set
Becouse when you do
SpawnPlayer();
The player gets spawned and if you have SePlayerSkin or something like that on
OnPlayerSpawn
Then the
SetPlayerSkin on the Dialog will not work

of u see what i mean
But when u choose one of these team's do the colors change two ?
oll and one thing more
pawn Код:
format(message, 256, "You selected Terrorist", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
Why do you have
listitem formated when your not even using it ?
Re: Dialog Little Problem. -
=WoR=Varth - 06.07.2011
Change the skin when the player already spawned.