[HELP]Commands sscanf & zcmd
#9

pawn Код:
CMD:world(playerid, params[])
{
     new World;
     if(sscanf(params, "d", World)) return SendClientMessage(playerid, -1, "Usage: /world [ID World]");
     if(World < 1 || World > 99) return SendClientMessage(playerid, -1, "[ERROR]: Worlds 1 - 99");
     SetPlayerVirtualWorld(playerid, World);
     return 1;
}
Try.
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: 2 Guest(s)