megaphone
#7

So basically you have no whatever-it's-called to send into the ProxDetector and work with? No string? For instance this is my practice script's /me command:

Код:
CMD:me(playerid, params[])
{
	new rpstring[128];

	if(sscanf(params, "s[128]", rpstring)) return SCM(playerid, 0xFFFFFFFF, "Usage: /me [action]");
	format(rpstring, sizeof(rpstring), "** %s %s", pName(playerid), rpstring);
	
	nearRP(30.0, playerid, rpstring, 0xAE00FFFF, 0xAE00FFFF, 0xAE00FFFF, 0xAE00FFFF, 0xAE00FFFF);

	return 1;
}
and this is how my public looks like for my "nearRP":

Код:
public nearRP(Float:radi, playerid, rpstring[], col1, col2, col3, col4, col5)
Your "ProxDetector(50.0, playerid, string, 0xFF8C00AA);" needs to match your ProxDetector's public thingy.
Reply


Messages In This Thread
megaphone - by Mattakil - 01.12.2013, 22:47
Re: megaphone - by Wizzy951 - 01.12.2013, 22:49
Re: megaphone - by Hansrutger - 01.12.2013, 22:58
Re: megaphone - by Mattakil - 01.12.2013, 23:06
Re: megaphone - by Hansrutger - 01.12.2013, 23:14
Re: megaphone - by Mattakil - 01.12.2013, 23:18
Re: megaphone - by Hansrutger - 01.12.2013, 23:21
Re: megaphone - by Wizzy951 - 01.12.2013, 23:25
Re: megaphone - by Mattakil - 01.12.2013, 23:49
Re: megaphone - by Hansrutger - 02.12.2013, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)