SetPlayerMapIcon under Public
#1

Код:
public MoneyBag()
{
    new string[175];
	if(!MoneyBagFound)
	{
	    format(string, sizeof(string), "**The {33FF66} Money bag {FFFFFF}has {FF0000} not {FFFFFF} been found, it is still hidden in {FFFF66} %s", MoneyBagLocation);
		SendClientMessageToAll(-1, string);
	}
	else if(MoneyBagFound)
	{
	    MoneyBagFound = 0;
	    new randombag = random(sizeof(MBSPAWN));
	    MoneyBagPos[0] = MBSPAWN[randombag][XPOS];
	    MoneyBagPos[1] = MBSPAWN[randombag][YPOS];
	    MoneyBagPos[2] = MBSPAWN[randombag][ZPOS];
	    format(MoneyBagLocation, sizeof(MoneyBagLocation), "%s", MBSPAWN[randombag][Position]);
		format(string, sizeof(string), "**The {33FF66}Money Bag has been {FF0000} hidden in {FFFF66} %s!", MoneyBagLocation);
        SendClientMessageToAll(-1, string);
		MoneyBagPickup = CreatePickup(1550, 2, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2], -1);
	}
	return 1;
}
SetPlayerMapIcon( playerid, 12, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2], 52, 0, MAPICON_GLOBAL );

How can i put SetPlayerMapicon under this function? It gives me error because "playerid"
Reply


Messages In This Thread
SetPlayerMapIcon under Public - by Jimbo01 - 17.05.2012, 16:02
Re: SetPlayerMapIcon under Public - by Yuryfury - 17.05.2012, 16:05
Re: SetPlayerMapIcon under Public - by Jimbo01 - 17.05.2012, 16:08
Re: SetPlayerMapIcon under Public - by Jimbo01 - 17.05.2012, 16:36
Re: SetPlayerMapIcon under Public - by Jimbo01 - 18.05.2012, 03:48

Forum Jump:


Users browsing this thread: 3 Guest(s)