A problem on setweather
#1

if(strcmp(cmdtext, "/setweather", true) == 0)
{

tmp=strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_RED,"/setweather [weather id]");
new weather=strval(tmp);
new ppName[24];
if(weather > 45 || weather < 0) return SendClientMessage(playerid,COLOR_RED,"Invalid weather number!");
SetWeather(weather);
GetPlayerName(playerid, ppName, sizeof(ppName));
format(string, sizeof(string), "Mod Message: %s has changed weather to id %d.", ppName, weather);
SendModMsg(mwhite, string);

return 1;
}


when i type /weather, "/setweather [weather id]" appears, but when i type /setweather x, it says "SERVER: Unknow cmd". i cant see any wrong think here, can some1 help me?
Reply


Messages In This Thread
A problem on setweather - by LasTRace - 17.06.2010, 18:20
Re: A problem on setweather - by dcmd_crash - 17.06.2010, 18:39
Re: A problem on setweather - by LasTRace - 17.06.2010, 18:47
Re: A problem on setweather - by LasTRace - 18.06.2010, 12:04
Re: A problem on setweather - by Vince - 18.06.2010, 12:12
Re: A problem on setweather - by LasTRace - 18.06.2010, 13:15
Re: A problem on setweather - by Despare - 18.06.2010, 16:30
Re: A problem on setweather - by Antonio [G-RP] - 18.06.2010, 16:31
Re: A problem on setweather - by Despare - 18.06.2010, 16:39
Re: A problem on setweather - by LasTRace - 18.06.2010, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)