SA-MP Forums Archive
NextMap Not Work - 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)
+--- Thread: NextMap Not Work (/showthread.php?tid=551129)



NextMap Not Work - alishvasis - 17.12.2014

Hi Alls.
I Write /NextMap Cmd For My Race Server But Not Work My Cmd..
Im Use YSI_INI And My Maps Adress Is : Mymode\scriptfiles\Maps

This Im My Script
Код HTML:
CMD:nextmap(playerid,params[])
{
	if(pInfo[playerid][pLogged] == 1)
	{
		if(pInfo[playerid][pAdminLevel] >= 1)
		{
			new map,stringmap[256];
			if(sscanf(params,"i", map)) return SendClientMessage(playerid,-1,""chat" /nextmap [mapid]");

			format(stringmap,sizeof(stringmap),""chat""COL_LIGHTBLUE" %s %s set next map id to %i",GetAdminName(playerid),PlayerName(playerid),map);
			SendClientMessageToAll(-1,stringmap);
			mapid = map;
		}
	}



AW: NextMap Not Work - Flori - 17.12.2014

What shall happen now? The code you gave is correct, but what follows?


Re: NextMap Not Work - Divergent - 17.12.2014

We need more information than this to help you.
Код:
mapid = map;
Show us further code relating to "mapid."


Re: NextMap Not Work - Aldi666 - 17.12.2014

The code execute when the current map finish. CMIIW