CMD does not set world.
#2

Код:
if(!strcmp(cmdtext, "/world", true))
{
	new string[256], tmp[256],wid,Index;    
	
	tmp = strtok(cmdtext,Index);    
	if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /world worldid [0 - 500000]");

	wid = strval(tmp);	    
	if(wid < 0 || wid > 500000) return SendClientMessage(playerid,COLOR_RED,"Invalid world ID  [0 - 500000]");  
      
	SetPlayerVirtualWorld(playerid, wid);    
	
	format(string, 128, "You have set your world to %d",wid);
	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)