SA-MP Forums Archive
Virtual Worlds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Virtual Worlds (/showthread.php?tid=111197)



Virtual Worlds - graetz - 30.11.2009

Hello i want to make command that will show player virtual world

Код:
if(strcmp(cmd, "/myvirtualworld", true) == 0)
	{
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
		SendClientMessage(playerid,COLOR_LIGHTGREEN,"Your virtual world is d% ",GetPlayerVirtualWorld(playerid));
		}
		return 1;
	}
How to make it work ?


Re: Virtual Worlds - Danny_Costelo - 30.11.2009

The return for GetPlayerVirtualWorld is an integer, so you would do '%d'


Re: Virtual Worlds - Correlli - 30.11.2009

And you need to format the message before you can send it, or you can use this.


Re: Virtual Worlds - graetz - 30.11.2009

Oh Thanks now it work