17.03.2012, 11:58
(
Last edited by RenSoprano; 21/03/2012 at 07:36 PM.
Reason: DELETED
)
DELETED
new bool:Masked[MAX_PLAYERS] = false;
public OnPlayerText(playerid, text[])
{
if(Masked[playerid])
{
new string[128];
format(string, sizeof(string), "Stranger says, \"%s\"", text);
SendClientMessageToAll(pick_a_color, string);
return 0;
}
return 1;
}
public OnPlayerText(playerid, text[])
{
if(Masked[playerid])
{
new string[128];
format(string, sizeof(string), "Stranger says, \"%s\"", text);
SendClientMessage(playerid, string); // HERE IS ERROR
return 0;
}
return 1;
}
C:\Users\home\Desktop\GFHF\gamemodes\rp1.pwn(232) : error 035: argument type mismatch (argument 2)
SendClientMessage(playerid, color, text);
SendClientMessage(playerid, -1, string);
pawn Code:
pawn Code:
|
stock ProxDetector(Float:radi, playerid, string[],color)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
foreach(Player,i)
{
if(!IsPlayerConnected(i))continue;
if(IsPlayerInRangeOfPoint(i,radi,x,y,z)) SendClientMessage(i,color,string);
}
}
public OnPlayerText(playerid, text[])
{
if(Masked[playerid] == 1)
{
new string[128];
format(string, sizeof(string), "Stranger says: %s", text);
ProxDetector(30,playerid,string,-1); // Sends the Stranger says message to anyone who is 30 gta units close to the player
return 1;
}
return 0;
}