06.06.2011, 22:00
Heres my code
Under Onplayer command text
and under on dialog reponce
I get no errors what so ever but the dialog dosnt open ? i dont even get a warning
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;
}
}
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 );
}
}
}