How To ? - 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: How To ? (
/showthread.php?tid=145556)
How To ? -
Raul_Ro - 02.05.2010
Hello! I have a problem ...
I used this in a gamemod:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Team","Type : \n1 - for blue team \n2 - for red team","Ok","Cancel");
How do ... when a player wirte 1 in that box give to him a skin and when write 2 give them other skins ?
I tried this:
if(dialogid==1)
{
if(!response)
{
if(inputtext[1] == 1)
{
SetPlayerSkin(playerid,122);
}
if(inputtext[1] == 2)
{
SetPlayerSkin(playerid,124);
}
}
}
To public OnDialogRespo......
But it not worked ...
So how do that when I write 1 to give me a skin and 2, other skins?
Sorry for my English, I'm from romania
Re: How To ? -
Miguel - 02.05.2010
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Team", "1 - for blue team \n2 - for red team", "Select", "Cancel");
pawn Код:
public OnDialogResponse(blablabla)
{
if(response)
{
if(dialogid == 1)
{
SetPlayerSkin(playerid, strval(inputtext));
}
}
return 1;
}