Wrong with my /setweather command
#1

Hello, I got a problem with my /setweather command, When i do /setweather 5 for an example, It dosent set the weather that i want. It just gives a random number. But if i do /setweather 1. It changes to the weather id 1.

This is my cmd:

pawn Код:
CMD:setweather(playerid,params[])
    {
        new string[128];
        new sendername[MAX_PLAYER_NAME];
        new weather;
        if(sscanf(params, "u[32]", weather))
        return SendClientMessage(playerid, RED, "[LOST:RP] /setweather [Weather ID]");
        if(PlayerInfo[playerid][pAdmin] < 4)
        return SendClientMessage(playerid, RED, "[LOST:RP] You are not high admin enough");
        {
            SetWeather(weather);
            SendClientMessage(playerid, RED, "[LOST:RP] The weather has been changed");
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, 256, "[LOST:RP] [ADMIN] %s has changed the weather to %d.", sendername,weather);
            aMessage(COLOR_YELLOW,string,1);
        }
        return 1;
    }
Anyone know how to fix?

Regards, alex
Reply


Messages In This Thread
Wrong with my /setweather command - by BizzyD - 13.05.2011, 18:23
Re: Wrong with my /setweather command - by MadeMan - 13.05.2011, 18:24
Re: Wrong with my /setweather command - by BizzyD - 13.05.2011, 18:28
Re: Wrong with my /setweather command - by Laronic - 13.05.2011, 18:49
Re: Wrong with my /setweather command - by kvsolga - 13.05.2011, 19:13
Re: Wrong with my /setweather command - by __ - 13.05.2011, 19:52
Re: Wrong with my /setweather command - by SchurmanCQC - 13.05.2011, 19:55
Re: Wrong with my /setweather command - by Ozz - 13.05.2011, 20:05
Re: Wrong with my /setweather command - by BizzyD - 13.05.2011, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)