jrhetf4xb
Member
- Reaction score
- 12
I just noticed something while browsing through some of my code, particularly these lines:
What I am concerned about is the [ljass]GetRandomInt(1, 8)[/ljass] part, which is in a GetLocalPlayer() block... Does that mean that it would return a different value for each player? This part of my code seems to malfunction from time to time (not showing texts for around a minute and then starting to show them again) and I was wondering if that was the cause.
JASS:
if IsPlayerInForce(GetLocalPlayer(), bj_FORCE_ALL_PLAYERS) then
call DisplayTextToPlayer(GetLocalPlayer(), 0., 0., sc + MSG[GetRandomInt(1, 8)] + st + "!")
endif
What I am concerned about is the [ljass]GetRandomInt(1, 8)[/ljass] part, which is in a GetLocalPlayer() block... Does that mean that it would return a different value for each player? This part of my code seems to malfunction from time to time (not showing texts for around a minute and then starting to show them again) and I was wondering if that was the cause.