Quote:
Originally Posted by HamletEagle
I simply don't get why people refuse to think before doing something. What's the point in putting the client_print inside a loop if you are still using 0 as index? You send to everyone, so it's expected that it will be send multiple times. Instead, you should send only to one player(that's why you loop all indexes).
|
Is not cleary he don't know what the loop it does ?
look:
PHP Code:
for( new i=0; i < PlayerCount; i++ )
{
//here [id]
if(off[id] == true)
{
// here id
get_user_name(id,szName,charsmax(szName));
//now printing my name times*playersnum suppose 10 players then my name is spamming 10times same msg
//here '0'
client_print(0,print_chat,"%s, Hey its a alliedmodders",szName);
}
}
}
He can remove the loop at all
)
He don't know how to use it that's why..
__________________