Client Message Spams
#1

Hello there,
Currently i was scripting something and while i send message to player it Spams like 10 times then stops so basicly i just need only 1 message ., i use SendError but even if i switch it to SendClientMessage same thing happens

here's the code.
https://pastebin.com/FNJdbMkt
Reply
#2

Use break; to disengage from the loop after you have sent the necessary message or if you need to loop other features continuously, place the messages outside of the loop.
Reply
#3

show your coding
Reply
#4

are you blind bro.
Reply
#5

What is it you're trying to accomplish, before i go breaking something by fixing your indenting, and code.
Reply
#6

nevermind.
Reply
#7

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
Use break; to disengage from the loop after you have sent the necessary message or if you need to loop other features continuously, place the messages outside of the loop.
He doesn't need to use break, all he needs to do is make the loop not happen unless he actually puts code in. Although, there are multiple places that this spam will occur, and it's not just for a fail, so in the end, he needs to revise his code overall.


The reason your code is spamming, is because the SendClientMessages for the player, are in the for loop. That's why.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)