CMD does not set world.
#1

I tried to make this so it set's the player world, fixing one I had before but now it does not do anything.
Code:
pawn Код:
if(!strcmp(cmdtext, "/world", true))
{
    if(!cmdtext[6])return SendClientMessage(playerid, COLOR_RED, "USAGE: /world [word 0 - 500000]");
    if(cmdtext[7] > 500000) return SendClientMessage(playerid,COLOR_RED,"Invalid world ID.");
    if(cmdtext[7] < 0) return SendClientMessage(playerid,COLOR_RED,"Invalid world ID.");
    new string[256];
    new tmp[256];
    tmp = strtok(cmdtext[7],idx);
    format(string, sizeof(string), "You have set your world to %s",tmp);
    SetPlayerVirtualWorld(playerid, cmdtext[7]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
}
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)