Hello. Where i can find Example :/w 1-20 ( /w=weather)
#2

Why not making it with zcmd?

pawn Код:
CMD:w(playerid,params[])
{
    new id;
    if(sscanf(params,"i",id)) return SendClientMessage(playerid,-1,"Usage: /w [1-14]");
    if(id < 1 || id > 14) return SendClientMessage(playerid,-1,"Usage: /w [1-14]");
    SetPlayerWeather(playerid,id);
    return 1;
}
it's much easier. Also you don't have to check is it 1, then is it 2 etc. just put weather variable inside SetPlayerWeather.
Reply


Messages In This Thread
Hello. Where i can find Example :/w 1-20 ( /w=weather) - by ProdrifterX - 08.12.2011, 09:27
Re: Hello. Where i can find Example :/w 1-20 ( /w=weather) - by [MG]Dimi - 08.12.2011, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)