NearByMessage - 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: NearByMessage (
/showthread.php?tid=558052)
NearByMessage -
X|Dragon|X - 16.01.2015
Код:
error 035: argument type mismatch (argument 2)
This is the line
pawn Код:
NearByMessage(playerid, COLOR_WHITE, string, 12);
this is the stock i made for it
pawn Код:
}
stock NearByMessage(playerid, color, string[], Float:Range = 10.0)
{
new Float:pPos[3];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, Range, pPos[0], pPos[1], pPos[2]) && GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
SendClientMessage(i, color, string);
}
}
return 1;
}
Help this error...
Re: NearByMessage -
Lynn - 16.01.2015
stock NearByMessage(playerid, color, string[], Float:Range)
Re: NearByMessage -
X|Dragon|X - 16.01.2015
Nope, same errors..
Re: NearByMessage -
CalvinC - 16.01.2015
EDIT: Can you show your #define COLOR_WHITE?