09.06.2012, 16:01
Quote:
whats wrong with that, besides where he has the return 0;
that should be at the end of the callback not in the loop... and GetPlayerName(playerid) cannot be used like that |
pawn Код:
new name[24];
GetPlayerName(playerid, name, sizeof(name));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
new str[128];
format(str, sizeof(str), "%s says: %s", name, text);
SendClientMessage(i, -1, str);
}
}
}
return 0;