[HELP]Commands sscanf & zcmd
#6

pawn Код:
CMD:world(playerid,params[])
{
    new world;
    if(!('0' <= params[0] <= '9')) SendClientMessage(playerid,-1,"/word <worldid>");
    else if(!(0 <= (world = strval(params)) <= 99)) SendClientMessage(playerid,-1,"Valid id 0-99");
    else{
        SetPlayerVirtualWorld(playerid,world);
        Worlds[playerid] = world;
        SendClientMessage(playerid,-1,"Success!");
    }
    return 1;
}
Reply


Messages In This Thread
[HELP]Commands sscanf & zcmd - by TheBluec0de - 08.06.2012, 17:37
Re: [HELP]Commands sscanf & zcmd - by Niko_boy - 08.06.2012, 17:44
Re: [HELP]Commands sscanf & zcmd - by Kindred - 08.06.2012, 17:45
Re: [HELP]Commands sscanf & zcmd - by TheBluec0de - 08.06.2012, 17:57
Re: [HELP]Commands sscanf & zcmd - by TheBluec0de - 08.06.2012, 18:34
Re: [HELP]Commands sscanf & zcmd - by Jefff - 08.06.2012, 18:40
Re: [HELP]Commands sscanf & zcmd - by TheBluec0de - 08.06.2012, 22:31
Re: [HELP]Commands sscanf & zcmd - by Dubya - 08.06.2012, 23:44
Re: [HELP]Commands sscanf & zcmd - by .FuneraL. - 08.06.2012, 23:50
Re: [HELP]Commands sscanf & zcmd - by TheBluec0de - 09.06.2012, 00:11

Forum Jump:


Users browsing this thread: 3 Guest(s)