fixed
May 2, 2019 at 7:38am UTC
fixed
Last edited on May 2, 2019 at 8:06am UTC
May 2, 2019 at 8:03am UTC
im trying to make a function that when toggled it will send the text until toggled off. when i build current script and
test it it will send one text message but not repeat, it will crash after a few seconds of first text which may be from
the delay
http://www.cplusplus.com/articles/jEywvCM9/
1 2 3 4 5 6 7 8 9 10 11 12 13 14
int Features::messageDelay = 750;
bool Features::message = false ;
void Features::Message(bool toggle)
{
if ((timeGetTime() - Features::TimePD2) > Features::messageDelay) {
const char *message = "test message" ;
for (int i = 0; i < 32; i++) {
int handle[26];
NETWORK::NETWORK_HANDLE_FROM_PLAYER(i, &handle[0], 13);
NETWORK::NETWORK_SEND_TEXT_MESSAGE(message, &handle[0]);
Features::TimePD2 = timeGetTime();
}
}
}
What's the relevance of the magic numbers 32, 26 and 13?
Why don't you use the parameter toggle?
What process calls
Features::Message() anyway?
Edit:
Added original content because the OP is a delete-and-run-away.
Last edited on May 2, 2019 at 9:59am UTC
Topic archived. No new replies allowed.