public OnPlayerText( playerid , text[] ) { if(text[0] == ';') { for(new i; i < MAX_PLAYERS; i++) { new Float[3]; GetPlayerPos(playerid,p[0],p[1],p[2]); if(IsPlayerInRangeOfPoint(i,20.0,p[0],p[1],p[2])) { new sStr[128]; GetPlayerName(playerid,sStr,23); format(sStr,128,"%s (%i): %s",sStr,playerid,text[1]); SendClientMessage(i,-1,sStr); SetPlayerChatBubble(playerid,text[1],COLOR_WHITE,20,6000); return 0; } } } new string[256]; format(string,sizeof(string),"[ID:%d]:%s",playerid,text); SendPlayerMessageToAll(playerid,string); SetPlayerChatBubble(playerid,string,COLOR_WHITE,10 0,6000); return 1; } |
new string[256];
format(string,sizeof(string),"[ID:%d]:%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,10 0,6000);
public OnPlayerText( playerid , text[] )
{
if(text[0] == ';')
{
for(new i; i < MAX_PLAYERS; i++)
{
new Float[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
if(IsPlayerInRangeOfPoint(i,20.0,p[0],p[1],p[2]))
{
new sStr[128];
GetPlayerName(playerid,sStr,23);
format(sStr,128,"%s (%i): %s",sStr,playerid,text[1]);
SendClientMessage(i,-1,sStr);
SetPlayerChatBubble(playerid,text[1],COLOR_WHITE,20,6000);
}
}
return true;
}
new string[128];
format(string,sizeof(string),"[ID:%d]:%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,10 0,6000);
return true;
}
D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(2961) : error 017: undefined symbol "p" D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(2961) : warning 215: expression has no effect D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(2961) : error 001: expected token: ";", but found "]" D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(2961) : error 029: invalid expression, assumed zero D:\Usuarios\Documentos\Servidor SAMP [HS]\gamemodes\HSGM.pwn(2961) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
public OnPlayerText(playerid, text[])
{
LimitGlobalChatRadius(10);
return 1;
}
public OnPlayerText( playerid , text[] )
{
if(text[0] == ';')
{
for(new i; i < MAX_PLAYERS; i++)
{
new Float:p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
if(IsPlayerInRangeOfPoint(i, 20.0,p[0],p[1],p[2]))
{
new sStr[128];
GetPlayerName(playerid,sStr,23);
format(sStr,128,"%s (%i): %s",sStr,playerid,text[1]);
SendClientMessage(i,-1,sStr);
SetPlayerChatBubble(playerid,text[1],COLOR_WHITE,20,6000);
}
}
return true;
}
new string[128];
format(string,sizeof(string),"[ID:%d]:%s",playerid,text);
SendPlayerMessageToAll(playerid,string);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,10 0,6000);
return true;
}
public OnPlayerText( playerid , text[] )
{
new sStr[128],pName[20];
if(text[0] == ';')
{
new Float:p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
GetPlayerName(playerid,pName,20);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,20.0,p[0],p[1],p[2]))
{
format(sStr,sizeof(sStr),"%s [ID:%d]:%s",pName,playerid,text);
SendClientMessage(i,-1,sStr);
}
}
}
SendPlayerMessageToAll(playerid,sStr);
SetPlayerChatBubble(playerid,sStr,COLOR_WHITE,10 0,6000);
return 1;
}
public OnPlayerText( playerid , text[] )
{
new sStr[128];
GetPlayerName(playerid, sStr, 24);
if(text[0] == ";")
{
for(new i, p = GetMaxPlayers(); i < p; i++)
{
if(!IsPlayerConnected(i)) continue;
new Float:p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
if(!IsPlayerInRangeOfPoint(i, 20.0, p[0], p[1], p[2])) continue;
strdel(text, 0, 1);
format(sStr, 128,"[CHAT PROXIMO] {FFFFF}[ID %d]: %s", sStr, playerid, text);
SendClientMessage(i, 0xFF0000FF, sStr);
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20, 6000);
}
return false;
}
format(sStr, 128,"[ID:%d] %s: %s", sStr, playerid, text);
SendPlayerMessageToAll(playerid, sStr);
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 100, 6000);
return true;
}