CMD does not set world.
#9

i HIGHLY recommend using zcmd, first because its faster. 2nd because its easier to code: btw, also add sscanf there:

pawn Код:
CMD:world(playerid,params[])
{
    new ID;
    if(sscanf(params,"d",ID)) return SendClientMessage(playerid, COLOR_RED,"USAGE: /Setworld < worldid >");
    SetPlayerVirtualWorld(playerid,ID);
    return 1;
}
as you see, less lines and it does what you want. if you use strcmp in your gamemode, probably you can use zcmd commands in a filterscript. Because OnPlayerCommandText and zcmd aren't compatible. So yeah, easy as it is
Reply


Messages In This Thread
CMD does not set world. - by Яσскѕтая - 22.07.2010, 16:32
Re: CMD does not set world. - by DJDhan - 22.07.2010, 16:52
Re: CMD does not set world. - by Яσскѕтая - 22.07.2010, 16:55
Re: CMD does not set world. - by DJDhan - 22.07.2010, 16:56
Re: CMD does not set world. - by Last_Stand_Guardian - 22.07.2010, 16:57
Re: CMD does not set world. - by Яσскѕтая - 22.07.2010, 16:57
Re: CMD does not set world. - by DJDhan - 22.07.2010, 17:02
Re: CMD does not set world. - by Яσскѕтая - 22.07.2010, 17:03
Re: CMD does not set world. - by [L3th4l] - 22.07.2010, 17:37
Re: CMD does not set world. - by Яσскѕтая - 22.07.2010, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)