01.12.2013, 23:21
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:
and this is how my public looks like for my "nearRP":
Your "ProxDetector(50.0, playerid, string, 0xFF8C00AA);" needs to match your ProxDetector's public thingy.
Код:
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; }
Код:
public nearRP(Float:radi, playerid, rpstring[], col1, col2, col3, col4, col5)