04.09.2010, 20:08
Pois й, inclui no meu server um sistema q pedi aki no forum, pra mandar msg sу pra ls/sf/lv. Pra separar e organizar mais as msg do server, e fiz:
#define COORDS_SF -1249.533,-2989.536,1471.412,-642.2831
#define COORDS_LS 2954.502,116.7788,-887.5186,-2709.267
#define COORDS_LV 2954.502,817.4513,2989.536,572.2159
stock SendClientMessageToSF(const msg[])
{
fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInArea(playerid,COORDS_SF))
{
SendClientMessage(playerid,COR,msg);
}
}
}
stock SendClientMessageToLS(const msg[])
{
fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInArea(playerid,COORDS_LS))
{
SendClientMessage(playerid,COR,msg);
}
}
}
stock SendClientMessageToLV(const msg[])
{
fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInArea(playerid,COORDS_LV))
{
SendClientMessage(playerid,COR,msg);
}
}
}
soh q da erro:
error 017: undefined symbol "fow"
error 029: invalid expression, assumed zero
error 017: undefined symbol "playerid"
fatal error 107: too many error messages on one line
a linha й: fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
Como faзo pra resolver? obrigado.
#define COORDS_SF -1249.533,-2989.536,1471.412,-642.2831
#define COORDS_LS 2954.502,116.7788,-887.5186,-2709.267
#define COORDS_LV 2954.502,817.4513,2989.536,572.2159
stock SendClientMessageToSF(const msg[])
{
fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInArea(playerid,COORDS_SF))
{
SendClientMessage(playerid,COR,msg);
}
}
}
stock SendClientMessageToLS(const msg[])
{
fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInArea(playerid,COORDS_LS))
{
SendClientMessage(playerid,COR,msg);
}
}
}
stock SendClientMessageToLV(const msg[])
{
fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInArea(playerid,COORDS_LV))
{
SendClientMessage(playerid,COR,msg);
}
}
}
soh q da erro:
error 017: undefined symbol "fow"
error 029: invalid expression, assumed zero
error 017: undefined symbol "playerid"
fatal error 107: too many error messages on one line
a linha й: fow(new playerid=0; playerid<MAX_PLAYERS; playerid++)
Como faзo pra resolver? obrigado.