17.07.2010, 20:36
(
Последний раз редактировалось [GET]Vidaloka; 17.07.2010 в 20:51.
)
meu amigo me passou este chat proximo:
if (strcmp(cmd, "/f", true)==0){
new tmp[256];
new string22[256];
strmid(tmp, cmdtext, 2, strlen(cmdtext));
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, " /f [texto]");
return 1;
}else{
for(new i=0; i<MAX_PLAYERS; i++){
if(GetDistanceBetweenPlayers(playerid, i) < 10){
format(string22, sizeof(string22), "| Chat-Proximo | ~ %s: %s", PlayerName(playerid), tmp);
SendClientMessage(playerid, Vermelho, string22);
return 1;
}
}
}
}
porem ele nгo esta funcionando,o que deve estar acontecendo?
if (strcmp(cmd, "/f", true)==0){
new tmp[256];
new string22[256];
strmid(tmp, cmdtext, 2, strlen(cmdtext));
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, " /f [texto]");
return 1;
}else{
for(new i=0; i<MAX_PLAYERS; i++){
if(GetDistanceBetweenPlayers(playerid, i) < 10){
format(string22, sizeof(string22), "| Chat-Proximo | ~ %s: %s", PlayerName(playerid), tmp);
SendClientMessage(playerid, Vermelho, string22);
return 1;
}
}
}
}
porem ele nгo esta funcionando,o que deve estar acontecendo?