[HELP]Commands sscanf & zcmd
#2

pawn Код:
CMD:world(playerid , params[])
{
  new world;
  if(sscanf(params,"i",world)) return SendClientMessage(playerid,-1,"/word <worldid>");
  if(0=< world < 99)
  {
    SetPlayerVirtualWorld(playerid,world);
// set variable to player worldid ?
    Worlds[playerid] = world;
    SendClientMessage(playerid,-1,"Success!");
  }else return SendClientMessage(playerid,-1,"Valid id 0-99");
  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: 1 Guest(s)