07.05.2010, 00:43
Hello guys, i've made a /myweather Cmd...
But im having a problem: when i choose the weather it's all ok except that the weather doesnt change -.-!
Have a see of the code:
Please i need help A.S.A.P
Thank in advanced :P
But im having a problem: when i choose the weather it's all ok except that the weather doesnt change -.-!
Have a see of the code:
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/myweather", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your weather", "Sunny \nExtra Sunny \nCloudy \nRain \nFog \nSandStorm \nUnderWater \nExtra1 \nExtra2 ", "Select", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { { switch(listitem) { case 0: { SetPlayerWeather(playerid, 1); } case 1: { SetPlayerWeather(playerid, 0); } case 2: { SetPlayerWeather(playerid, 4); } case 3: { SetPlayerWeather(playerid, ![]() } case 4: { SetPlayerWeather(playerid, 9); } case 5: { SetPlayerWeather(playerid, 19); } case 6: { SetPlayerWeather(playerid, 20); } case 7: { SetPlayerWeather(playerid, 21); } case 8: { SetPlayerWeather(playerid, 22); } } } return 1; } |
Thank in advanced :P