Dialog dosnt open - 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 dosnt open (
/showthread.php?tid=259997)
Dialog dosnt open -
SpankMe2 - 06.06.2011
Heres my code
Under Onplayer command text
pawn Код:
if (!strcmp("/setweather", cmdtext, true))
{
if(PlayerInfo[playerid][pAdminLevel] < 3)
{
ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "Select Weather", "Normal\nStorm\nFog\nSandStorm\nGreenFog\nRainy\nDullBrown\nBright\nStormy with Pink Sky and Crystal Water\nDarkest Weather Ever\nCloudy", "Select", "Cancel");
return 1;
}
}
and under on dialog reponce
pawn Код:
if(dialogid == 2222)
{
switch(listitem)
{
case 0:
{
SetWeather( 0 );
}
case 1:
{
SetWeather( 8 );
}
case 2:
{
SetWeather( 9 );
}
case 3:
{
SetWeather( 19 );
}
case 4:
{
SetWeather( 20 );
}
case 5:
{
SetWeather( 16 );
}
case 6:
{
SetWeather( 39 );
}
case 7:
{
SetWeather( 700 );
}
case 8:
{
SetWeather( 150 );
}
case 9:
{
SetWeather( 32 );
}
}
}
I get no errors what so ever but the dialog dosnt open ? i dont even get a warning
Re: Dialog dosnt open -
shitbird - 06.06.2011
Is your admin level higher than 3?
Edit: Do you have any filterscripts that might interfere with another/this script?
Re: Dialog dosnt open -
SpankMe2 - 06.06.2011
i dont use filterscripts i just script them stright in also my admin level is 12 owner level
Re: Dialog dosnt open -
SpankMe2 - 06.06.2011
Comon guys does anyone know?
Re: Dialog dosnt open -
Tee - 07.06.2011
Well your script is saying that your admin level needs to be below 3 for that command to work.